MCPcopy Create free account
hub / github.com/ceph/ceph / module_load

Function module_load

src/common/module.c:72–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72int module_load(const char *module, const char *options)
73{
74 char command[128];
75
76 snprintf(command, sizeof(command), "/sbin/modprobe %s %s",
77 module, (options ? options : ""));
78
79 return run_command(command);
80}
81
82#else
83

Callers 3

map_imageFunction · 0.85
load_moduleFunction · 0.85
modprobeFunction · 0.85

Calls 1

run_commandFunction · 0.70

Tested by

no test coverage detected