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

Function netisr_register_vnet

freebsd/net/netisr.c:681–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679
680#ifdef VIMAGE
681void
682netisr_register_vnet(const struct netisr_handler *nhp)
683{
684 u_int proto;
685
686 proto = nhp->nh_proto;
687
688 KASSERT(curvnet != NULL, ("%s: curvnet is NULL", __func__));
689 KASSERT(proto < NETISR_MAXPROT,
690 ("%s(%u): protocol too big for %s", __func__, proto, nhp->nh_name));
691 NETISR_WLOCK();
692 KASSERT(netisr_proto[proto].np_handler != NULL,
693 ("%s(%u): protocol not registered for %s", __func__, proto,
694 nhp->nh_name));
695
696 V_netisr_enable[proto] = 1;
697 NETISR_WUNLOCK();
698}
699
700static void
701netisr_drain_proto_vnet(struct vnet *vnet, u_int proto)

Callers 5

ip_initFunction · 0.85
vnet_igmp_initFunction · 0.85
ip6_initFunction · 0.85
vnet_epair_initFunction · 0.85
vnet_ether_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected