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.
Click to show internal directories.
Click to hide internal directories.