Documentation ¶
Overview ¶
Package kmodule interfaces with Linux kernel modules.
kmodule allows loading and unloading kernel modules with dependencies, as well as locating them through probing.
Index ¶
Constants ¶
View Source
const ( // Ignore symbol version hashes. MODULE_INIT_IGNORE_MODVERSIONS = 0x1 // Ignore kernel version magic. MODULE_INIT_IGNORE_VERMAGIC = 0x2 )
Flags to finit_module(2) / FileInit.
Variables ¶
This section is empty.
Functions ¶
func FileInit ¶
FileInit loads the kernel module contained by `f` with the given opts and flags.
FileInit falls back to Init when the finit_module(2) syscall is not available.
func Probe ¶
Probe loads the given kernel module and its dependencies. It is calls ProbeOptions with the default ProbeOpts.
func ProbeOptions ¶
ProbeOptions loads the given kernel module and its dependencies. This functions takes ProbeOpts.
Types ¶
Click to show internal directories.
Click to hide internal directories.