kernel

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module interface {
	Load(persist bool) error
	Unload(unpersist bool) error
	IsLoaded() (loaded bool, persisted bool, err error)
	Name() string
}

Module defines the interface for kernel module management operations

func NewModule

func NewModule(name string) (Module, error)

NewModule creates a new Module instance with the given name. The name is validated to ensure it only contains alphanumeric characters, underscores, and hyphens to prevent command injection attacks. Returns an error if the name is empty or contains invalid characters.

Jump to

Keyboard shortcuts

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