| 174 | }; |
| 175 | |
| 176 | static int |
| 177 | mod_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 |
| 197 | static |
nothing calls this directly
no test coverage detected