| 90 | }; |
| 91 | |
| 92 | static int |
| 93 | mod_handler(module_t mod, int type, void *data) |
| 94 | { |
| 95 | int error; |
| 96 | |
| 97 | switch (type) { |
| 98 | case MOD_LOAD: |
| 99 | error = 0; |
| 100 | LibAliasAttachHandlers(handlers); |
| 101 | break; |
| 102 | case MOD_UNLOAD: |
| 103 | error = 0; |
| 104 | LibAliasDetachHandlers(handlers); |
| 105 | break; |
| 106 | default: |
| 107 | error = EINVAL; |
| 108 | } |
| 109 | return (error); |
| 110 | } |
| 111 | |
| 112 | #ifdef _KERNEL |
| 113 | static |
nothing calls this directly
no test coverage detected