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

Function mod_handler

freebsd/netinet/libalias/alias_nbt.c:157–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155};
156
157static int
158mod_handler(module_t mod, int type, void *data)
159{
160 int error;
161
162 switch (type) {
163 case MOD_LOAD:
164 error = 0;
165 LibAliasAttachHandlers(handlers);
166 break;
167 case MOD_UNLOAD:
168 error = 0;
169 LibAliasDetachHandlers(handlers);
170 break;
171 default:
172 error = EINVAL;
173 }
174 return (error);
175}
176
177#ifdef _KERNEL
178static

Callers

nothing calls this directly

Calls 2

LibAliasAttachHandlersFunction · 0.85
LibAliasDetachHandlersFunction · 0.85

Tested by

no test coverage detected