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

Function mod_handler

freebsd/netinet/libalias/alias_pptp.c:172–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170 { EOH }
171};
172static int
173mod_handler(module_t mod, int type, void *data)
174{
175 int error;
176
177 switch (type) {
178 case MOD_LOAD:
179 error = 0;
180 LibAliasAttachHandlers(handlers);
181 break;
182 case MOD_UNLOAD:
183 error = 0;
184 LibAliasDetachHandlers(handlers);
185 break;
186 default:
187 error = EINVAL;
188 }
189 return (error);
190}
191
192#ifdef _KERNEL
193static

Callers

nothing calls this directly

Calls 2

LibAliasAttachHandlersFunction · 0.85
LibAliasDetachHandlersFunction · 0.85

Tested by

no test coverage detected