Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareVersions ¶
CompareVersions compares two kernel version strings. It returns 1 if v1 > v2, -1 if v1 < v2, and 0 if they are equal.
func GetKernelVersion ¶
GetKernelVersion fetches the Linux kernel version without using exec commands. It reads the version directly from /proc/sys/kernel/osrelease.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.