| 165 | } |
| 166 | |
| 167 | static int |
| 168 | sctp_modload(struct module *module, int cmd, void *arg) |
| 169 | { |
| 170 | int error; |
| 171 | |
| 172 | switch (cmd) { |
| 173 | case MOD_LOAD: |
| 174 | error = sctp_module_load(); |
| 175 | break; |
| 176 | case MOD_UNLOAD: |
| 177 | /* |
| 178 | * Unloading SCTP is currently unsupported. Currently, SCTP |
| 179 | * iterator threads are not stopped during unload. |
| 180 | */ |
| 181 | error = EOPNOTSUPP; |
| 182 | break; |
| 183 | default: |
| 184 | error = 0; |
| 185 | break; |
| 186 | } |
| 187 | return (error); |
| 188 | } |
| 189 | |
| 190 | static moduledata_t sctp_mod = { |
| 191 | "sctp", |
nothing calls this directly
no test coverage detected