kmod

package
v3.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListKernelModules

func ListKernelModules(s *sys.System) ([]string, error)

Types

type Config

type Config struct {
	BaseDir    string
	MountPoint string
}

func NewConfig

func NewConfig() *Config

func (*Config) ModuleCacheDir

func (c *Config) ModuleCacheDir() string

func (*Config) OverlayWorkDir

func (c *Config) OverlayWorkDir() string

type ModuleCache

type ModuleCache struct {
	KernelDir string
	FS        vfs.FS
	Runner    sys.Runner
}

func (*ModuleCache) Build

func (c *ModuleCache) Build(ctx context.Context, outputDir string) error

type Reloader

type Reloader struct {
	*sys.System

	Config      *Config
	ModuleCache moduleCacheBuilder
	KernelDir   string
}

func (*Reloader) Reload

func (r *Reloader) Reload(ctx context.Context, kernelModules []string) (err error)

type Unloader

type Unloader struct {
	*sys.System

	Config *Config
}

func (*Unloader) Unload

func (u *Unloader) Unload(ctx context.Context, kernelModules []string) error

Jump to

Keyboard shortcuts

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