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

Function mq_modload

freebsd/kern/uipc_mqueue.c:2918–2940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2916}
2917
2918static int
2919mq_modload(struct module *module, int cmd, void *arg)
2920{
2921 int error = 0;
2922
2923 error = vfs_modevent(module, cmd, arg);
2924 if (error != 0)
2925 return (error);
2926
2927 switch (cmd) {
2928 case MOD_LOAD:
2929 error = mqinit();
2930 if (error != 0)
2931 mqunload();
2932 break;
2933 case MOD_UNLOAD:
2934 error = mqunload();
2935 break;
2936 default:
2937 break;
2938 }
2939 return (error);
2940}
2941
2942static moduledata_t mqueuefs_mod = {
2943 "mqueuefs",

Callers

nothing calls this directly

Calls 3

vfs_modeventFunction · 0.85
mqinitFunction · 0.85
mqunloadFunction · 0.85

Tested by

no test coverage detected