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

Function domain_init

freebsd/kern/uipc_domain.c:170–187  ·  view source on GitHub ↗

* Add a new protocol domain to the list of supported domains * Note: you cant unload it again because a socket may be using it. * XXX can't fail at this time. */

Source from the content-addressed store, hash-verified

168 * XXX can't fail at this time.
169 */
170void
171domain_init(void *arg)
172{
173 struct domain *dp = arg;
174 struct protosw *pr;
175
176 if (dp->dom_init)
177 (*dp->dom_init)();
178 for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++)
179 protosw_init(pr);
180 /*
181 * update global information about maximums
182 */
183 max_hdr = max_linkhdr + max_protohdr;
184 max_datalen = MHLEN - max_hdr;
185 if (max_datalen < 1)
186 panic("%s: max_datalen < 1", __func__);
187}
188
189#ifdef VIMAGE
190void

Callers 1

vnet_domain_initFunction · 0.85

Calls 2

protosw_initFunction · 0.85
panicFunction · 0.70

Tested by

no test coverage detected