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

Function mod_handler

freebsd/netinet/libalias/alias_skinny.c:92–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90};
91
92static int
93mod_handler(module_t mod, int type, void *data)
94{
95 int error;
96
97 switch (type) {
98 case MOD_LOAD:
99 error = 0;
100 LibAliasAttachHandlers(handlers);
101 break;
102 case MOD_UNLOAD:
103 error = 0;
104 LibAliasDetachHandlers(handlers);
105 break;
106 default:
107 error = EINVAL;
108 }
109 return (error);
110}
111
112#ifdef _KERNEL
113static

Callers

nothing calls this directly

Calls 2

LibAliasAttachHandlersFunction · 0.85
LibAliasDetachHandlersFunction · 0.85

Tested by

no test coverage detected