kernel

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Utsname

type Utsname struct {
	Release [65]byte
}

Utsname represents the system name structure. It is defined here to make it portable as it is available on linux but not on windows.

type VersionInfo

type VersionInfo struct {
	// contains filtered or unexported fields
}

VersionInfo holds information about the kernel.

func GetKernelVersion

func GetKernelVersion() (*VersionInfo, error)

GetKernelVersion gets the current kernel version.

func (*VersionInfo) String

func (k *VersionInfo) String() string

Jump to

Keyboard shortcuts

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