Documentation ¶
Index ¶
- Constants
- func Delete(name string, flags uintptr) error
- func FileInit(f *os.File, opts string, flags uintptr) error
- func Init(image []byte, opts string) error
- func Probe(name string, modParams string) error
- func ProbeOptions(name, modParams string, opts ProbeOpts) error
- type ProbeOpts
- type SyscallError
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 ¶
type ProbeOpts ¶
ProbeOpts contains optional parameters to Probe.
An empty ProbeOpts{} should lead to the default behavior.
type SyscallError ¶
SyscallError contains an error message as well as the actual syscall Errno
func (*SyscallError) Error ¶
func (s *SyscallError) Error() string
Click to show internal directories.
Click to hide internal directories.