kernel

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2024 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersions

func CompareVersions(v1, v2 string) int

CompareVersions compares two kernel version strings. It returns 1 if v1 > v2, -1 if v1 < v2, and 0 if they are equal.

func GetKernelVersion

func GetKernelVersion() (string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL