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

Function module_quiesce

freebsd/kern/kern_module.c:242–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242int
243module_quiesce(module_t mod)
244{
245 int error;
246
247 mtx_lock(&Giant);
248 error = MOD_EVENT(mod, MOD_QUIESCE);
249 mtx_unlock(&Giant);
250 if (error == EOPNOTSUPP || error == EINVAL)
251 error = 0;
252 return (error);
253}
254
255int
256module_unload(module_t mod)

Callers 1

linker_file_unloadFunction · 0.85

Calls 2

mtx_lockFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected