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

Function module_has_param

src/common/module.c:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61int module_has_param(const char *module, const char *param)
62{
63 char command[128];
64
65 snprintf(command, sizeof(command),
66 "/sbin/modinfo -F parm %s | /bin/grep -q ^%s:",
67 module, param);
68
69 return run_command(command) == 0;
70}
71
72int module_load(const char *module, const char *options)
73{

Callers 1

map_imageFunction · 0.85

Calls 1

run_commandFunction · 0.70

Tested by

no test coverage detected