lxd/util/kernel.go
func LoadModule(module string) error {
	if shared.PathExists(fmt.Sprintf("/sys/module/%s", module)) {
		return nil
	}

	_, err := shared.RunCommand("modprobe", module)
	return err
}
func LoadModule(module string) error {
	if shared.PathExists(fmt.Sprintf("/sys/module/%s", module)) {
		return nil
	}

	_, err := shared.RunCommand("modprobe", module)
	return err
}
func LoadModule ( module string ) error { if shared . PathExists ( fmt . Sprintf ( " " , module ) ) { return nil } _ , err := shared . RunCommand ( " " , module ) return err }
// LoadModule loads the kernel module with the given name, by invoking
// modprobe.
LoadModule loads the kernel module with the given name by invoking modprobe .