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

Function vnet_if_init

freebsd/net/if.c:444–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442 */
443
444static void
445vnet_if_init(const void *unused __unused)
446{
447 void *old;
448
449 CK_STAILQ_INIT(&V_ifnet);
450 CK_STAILQ_INIT(&V_ifg_head);
451 IFNET_WLOCK();
452 old = if_grow(); /* create initial table */
453 IFNET_WUNLOCK();
454 epoch_wait_preempt(net_epoch_preempt);
455 free(old, M_IFNET);
456 vnet_if_clone_init();
457}
458VNET_SYSINIT(vnet_if_init, SI_SUB_INIT_IF, SI_ORDER_SECOND, vnet_if_init,
459 NULL);
460

Callers

nothing calls this directly

Calls 4

if_growFunction · 0.85
vnet_if_clone_initFunction · 0.85
epoch_wait_preemptFunction · 0.50
freeFunction · 0.50

Tested by

no test coverage detected