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

Function sysvsem_modload

freebsd/kern/sysv_sem.c:377–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377static int
378sysvsem_modload(struct module *module, int cmd, void *arg)
379{
380 int error = 0;
381
382 switch (cmd) {
383 case MOD_LOAD:
384 error = seminit();
385 break;
386 case MOD_UNLOAD:
387 error = semunload();
388 break;
389 case MOD_SHUTDOWN:
390 break;
391 default:
392 error = EINVAL;
393 break;
394 }
395 return (error);
396}
397
398static moduledata_t sysvsem_mod = {
399 "sysvsem",

Callers

nothing calls this directly

Calls 2

seminitFunction · 0.85
semunloadFunction · 0.85

Tested by

no test coverage detected