kernel

package
v0.0.0-...-fb21f61 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigFeature        = "config"
	LoadedModuleFeature  = "loadedmodule"
	SelinuxFeature       = "selinux"
	VersionFeature       = "version"
	EnabledModuleFeature = "enabledmodule"
	KvmFeature           = "kvm"
)
View Source
const Name = "kernel"

Name of this feature source

Variables

This section is empty.

Functions

func GetLegacyKconfig

func GetLegacyKconfig() map[string]string

func KvmEnabled

func KvmEnabled() (bool, error)

KvmEnabled detects if kvm has been enabled in the kernel

func SelinuxEnabled

func SelinuxEnabled() (bool, error)

SelinuxEnabled detects if selinux has been enabled in the kernel

Types

type Config

type Config struct {
	KconfigFile string
	ConfigOpts  []string `json:"configOpts,omitempty"`
}

Configuration file options

Jump to

Keyboard shortcuts

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