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

Function mod_handler

freebsd/netinet/libalias/alias_dummy.c:117–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115};
116
117static int
118mod_handler(module_t mod, int type, void *data)
119{
120 int error;
121
122 switch (type) {
123 case MOD_LOAD:
124 error = 0;
125 LibAliasAttachHandlers(handlers);
126 break;
127 case MOD_UNLOAD:
128 error = 0;
129 LibAliasDetachHandlers(handlers);
130 break;
131 default:
132 error = EINVAL;
133 }
134 return (error);
135}
136
137#ifdef _KERNEL
138static

Callers

nothing calls this directly

Calls 2

LibAliasAttachHandlersFunction · 0.85
LibAliasDetachHandlersFunction · 0.85

Tested by

no test coverage detected