| 115 | }; |
| 116 | |
| 117 | static int |
| 118 | mod_handler(module_t mod, int type, void *data) |
| 119 | { |
| 120 | int error; |
| 121 | |
| 122 | switch (type) { |
| 123 | case MOD_LOAD: |
| 124 | error = 0; |
| 125 | LibAliasAttachHandlers(handlers); |
| 126 | break; |
| 127 | case MOD_UNLOAD: |
| 128 | error = 0; |
| 129 | LibAliasDetachHandlers(handlers); |
| 130 | break; |
| 131 | default: |
| 132 | error = EINVAL; |
| 133 | } |
| 134 | return (error); |
| 135 | } |
| 136 | |
| 137 | #ifdef _KERNEL |
| 138 | static |
nothing calls this directly
no test coverage detected