MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sctp_modload

Function sctp_modload

freebsd/netinet/sctp_module.c:167–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167static int
168sctp_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
190static moduledata_t sctp_mod = {
191 "sctp",

Callers

nothing calls this directly

Calls 1

sctp_module_loadFunction · 0.85

Tested by

no test coverage detected