| 166 | }; |
| 167 | |
| 168 | static int |
| 169 | mod_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 |
| 189 | static |
nothing calls this directly
no test coverage detected