| 155 | }; |
| 156 | |
| 157 | static int |
| 158 | mod_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 |
| 178 | static |
nothing calls this directly
no test coverage detected