Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if.c
Show First 20 Lines • Show All 927 Lines • ▼ Show 20 Lines | |||||
static void | static void | ||||
if_epochalloc(void *dummy __unused) | if_epochalloc(void *dummy __unused) | ||||
{ | { | ||||
net_epoch_preempt = epoch_alloc("Net preemptible", EPOCH_PREEMPT); | net_epoch_preempt = epoch_alloc("Net preemptible", EPOCH_PREEMPT); | ||||
net_epoch = epoch_alloc("Net", 0); | net_epoch = epoch_alloc("Net", 0); | ||||
} | } | ||||
SYSINIT(ifepochalloc, SI_SUB_TASKQ + 1, SI_ORDER_ANY, | SYSINIT(ifepochalloc, SI_SUB_EPOCH, SI_ORDER_ANY, if_epochalloc, NULL); | ||||
if_epochalloc, NULL); | |||||
static void | static void | ||||
if_attachdomain(void *dummy) | if_attachdomain(void *dummy) | ||||
{ | { | ||||
struct ifnet *ifp; | struct ifnet *ifp; | ||||
CK_STAILQ_FOREACH(ifp, &V_ifnet, if_link) | CK_STAILQ_FOREACH(ifp, &V_ifnet, if_link) | ||||
if_attachdomain1(ifp); | if_attachdomain1(ifp); | ||||
▲ Show 20 Lines • Show All 3,614 Lines • Show Last 20 Lines |