kernels

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectConfig added in v1.6.0

func DetectConfig(conf Config) bool

DetectConfig checks if a kernel config option is enabled It first tries /proc/config.gz, then looks for config file in /boot for the current kernel

func FixKernelVersion

func FixKernelVersion(version int) int

func GetKernelVersion

func GetKernelVersion(kernelVersion, procfs string) (int, string, error)

func IsKernelVersionLessThan

func IsKernelVersionLessThan(version string) bool

func KernelStringToNumeric

func KernelStringToNumeric(ver string) int64

func LogConfigs added in v1.6.0

func LogConfigs() string

func MinKernelVersion

func MinKernelVersion(kernel string) bool

Types

type Config added in v1.6.0

type Config string
const (
	CONFIG_AUDIT                  Config = "CONFIG_AUDIT"
	CONFIG_AUDITSYSCALL           Config = "CONFIG_AUDITSYSCALL"
	CONFIG_BPF                    Config = "CONFIG_BPF"
	CONFIG_BPF_EVENTS             Config = "CONFIG_BPF_EVENTS"
	CONFIG_BPF_JIT                Config = "CONFIG_BPF_JIT"
	CONFIG_BPF_JIT_DEFAULT_ON     Config = "CONFIG_BPF_JIT_DEFAULT_ON"
	CONFIG_BPF_KPROBE_OVERRIDE    Config = "CONFIG_BPF_KPROBE_OVERRIDE"
	CONFIG_BPF_SYSCALL            Config = "CONFIG_BPF_SYSCALL"
	CONFIG_CGROUPS                Config = "CONFIG_CGROUPS"
	CONFIG_DEBUG_INFO_BTF         Config = "CONFIG_DEBUG_INFO_BTF"
	CONFIG_DEBUG_INFO_BTF_MODULES Config = "CONFIG_DEBUG_INFO_BTF_MODULES"
	CONFIG_FTRACE_SYSCALLS        Config = "CONFIG_FTRACE_SYSCALLS"
	CONFIG_HAVE_BPF_JIT           Config = "CONFIG_HAVE_BPF_JIT"
	CONFIG_HAVE_EBPF_JIT          Config = "CONFIG_HAVE_EBPF_JIT"
	CONFIG_SECURITY               Config = "CONFIG_SECURITY"
)

Jump to

Keyboard shortcuts

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