modules

package
v1.6.11 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package modules contains a manager of loaded modules which supports search operation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModulesManager

type ModulesManager struct {
	// contains filtered or unexported fields
}

ModulesManager is a manager which stores information about loaded modules and provides a search operation.

func (*ModulesManager) FindModules added in v1.6.4

func (m *ModulesManager) FindModules(expectedNames ...string) (bool, []string)

FindModules checks whether the given kernel modules are loaded and also returns a slice with names of modules which are not loaded.

func (*ModulesManager) FindOrLoadModules

func (m *ModulesManager) FindOrLoadModules(expectedNames ...string) error

FindOrLoadModules checks whether the given kernel modules are loaded and tries to load those which are not.

func (*ModulesManager) Init

func (m *ModulesManager) Init() error

Init initializes the internal modules information store of modules manager.

Jump to

Keyboard shortcuts

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