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

Function mod_handler

freebsd/netinet/libalias/alias_smedia.c:176–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

LibAliasAttachHandlersFunction · 0.85
LibAliasDetachHandlersFunction · 0.85

Tested by

no test coverage detected