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

Function mod_handler

freebsd/netinet/libalias/alias_irc.c:132–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130};
131
132static int
133mod_handler(module_t mod, int type, void *data)
134{
135 int error;
136
137 switch (type) {
138 case MOD_LOAD:
139 error = 0;
140 LibAliasAttachHandlers(handlers);
141 break;
142 case MOD_UNLOAD:
143 error = 0;
144 LibAliasDetachHandlers(handlers);
145 break;
146 default:
147 error = EINVAL;
148 }
149 return (error);
150}
151
152#ifdef _KERNEL
153static

Callers

nothing calls this directly

Calls 2

LibAliasAttachHandlersFunction · 0.85
LibAliasDetachHandlersFunction · 0.85

Tested by

no test coverage detected