MCPcopy Create free account
hub / github.com/F-Stack/f-stack / module_lookupbyname

Function module_lookupbyname

freebsd/kern/kern_module.c:213–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213module_t
214module_lookupbyname(const char *name)
215{
216 module_t mod;
217 int err;
218
219 MOD_LOCK_ASSERT;
220
221 TAILQ_FOREACH(mod, &modules, link) {
222 err = strcmp(mod->name, name);
223 if (err == 0)
224 return (mod);
225 }
226 return (NULL);
227}
228
229module_t
230module_lookupbyid(int modid)

Callers 3

module_register_initFunction · 0.85
module_registerFunction · 0.85
sys_modfindFunction · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected