package
1.7.0
Repository: https://github.com/trinet2005/oss-admin-go.git
Documentation: pkg.go.dev

# Functions

CurrentRelease returns the current kernel release ensuring that ubuntu and debian release numbers are accurate.
CurrentVersion returns the current kernel version in LINUX_VERSION_CODE format (see VersionFromRelease()).
Version implements KERNEL_VERSION equivalent macro #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + ((c) > 255 ? 255 : (c))).
VersionFromRelease converts a release string with format 4.4.2[-1] to a kernel version number in LINUX_VERSION_CODE format.