| 130 | }; |
| 131 | |
| 132 | static int |
| 133 | mod_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 |
| 153 | static |
nothing calls this directly
no test coverage detected