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

Function mod_handler

freebsd/netinet/libalias/alias_ftp.c:168–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

LibAliasAttachHandlersFunction · 0.85
LibAliasDetachHandlersFunction · 0.85

Tested by

no test coverage detected