Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LinuxKernelHandler ¶
type LinuxKernelHandler struct {
// contains filtered or unexported fields
}
func NewLinuxKernelHandler ¶
func NewLinuxKernelHandler() *LinuxKernelHandler
NewLinuxKernelHandler initializes LinuxKernelHandler with exec.
func (*LinuxKernelHandler) DetectKernelVersion ¶
func (kh *LinuxKernelHandler) DetectKernelVersion(ctx context.Context) (string, error)
func (*LinuxKernelHandler) GetModulesAndTryToLoadByWanted ¶
func (kh *LinuxKernelHandler) GetModulesAndTryToLoadByWanted(ctx context.Context, wantedModules []string) ([]string, error)
GetModulesAndTryToLoadByWanted returns all installed kernel modules which match any of the specified names. Try to load the required kernel modules if not built in.
Click to show internal directories.
Click to hide internal directories.