Home
last modified time | relevance | path

Searched refs:curvnet (Results 1 – 25 of 69) sorted by relevance

123

/freebsd/sys/net/
H A Dvnet.h176 #define curvnet curthread->td_vnet macro
198 __FILE__, __LINE__, __func__, curvnet, (arg))); \
199 struct vnet *saved_vnet = curvnet; \
201 curvnet = arg; \
212 VNET_ASSERT(curvnet != NULL && (saved_vnet == NULL || \
215 __FILE__, __LINE__, __func__, curvnet, saved_vnet)); \
216 curvnet = saved_vnet; \
223 __FILE__, __LINE__, __func__, curvnet, (arg))); \
224 struct vnet *saved_vnet = curvnet; \
225 curvnet = arg;
[all …]
H A Dvnet.c342 curvnet = prison0.pr_vnet = vnet0 = vnet_alloc(); in vnet0_init()
350 curvnet = NULL; in vnet_init_done()
628 curvnet->vnet_state = vs->subsystem; in vnet_sysinit()
647 curvnet->vnet_state = vs->subsystem; in vnet_sysuninit()
724 (vnr->old_vnet == vnr->new_vnet) == (curvnet == old_vnet)) in vnet_log_recursion()
734 vnr->new_vnet = curvnet; in vnet_log_recursion()
H A Dnetisr.c399 MPASS(IS_DEFAULT_VNET(curvnet)); in netisr_register()
463 if (vnet_iter == curvnet) in netisr_register()
686 KASSERT(curvnet != NULL, ("%s: curvnet is NULL", __func__)); in netisr_register_vnet()
761 KASSERT(curvnet != NULL, ("%s: curvnet is NULL", __func__)); in netisr_unregister_vnet()
771 netisr_drain_proto_vnet(curvnet, proto); in netisr_unregister_vnet()
H A Dif.c324 ifindex_table[i].ife_ifnet->if_vnet == curvnet) in sysctl_ifcount()
365 if (curvnet != NULL && ifp != NULL && ifp->if_vnet != curvnet) in ifnet_byindex()
434 MPASS(ifp->if_vnet == curvnet); in if_link_ifnet()
439 curvnet->vnet_ifcnt++; in if_link_ifnet()
455 MPASS(ifp->if_vnet == curvnet); in if_unlink_ifnet()
460 curvnet->vnet_ifcnt--; in if_unlink_ifnet()
498 pending = malloc(sizeof(struct ifnet *) * curvnet->vnet_ifcnt, in vnet_if_return()
544 ifp->if_vnet = curvnet; in if_alloc_domain()
829 ifp->if_vnet = curvnet; in if_attach_internal()
831 ifp->if_home_vnet = curvnet; in if_attach_internal()
[all …]
H A Dif_ipsec.c275 if (IS_DEFAULT_VNET(curvnet)) in vnet_ipsec_init()
281 if (IS_DEFAULT_VNET(curvnet)) in vnet_ipsec_init()
305 if (IS_DEFAULT_VNET(curvnet)) in vnet_ipsec_uninit()
310 if (IS_DEFAULT_VNET(curvnet)) in vnet_ipsec_uninit()
H A Dbpf_ifnet.c239 if (bootverbose && IS_DEFAULT_VNET(curvnet)) in bpfattach()
/freebsd/sys/netpfil/ipfw/nptv6/
H A Dip_fw_nptv6.c51 return (nptv6_init(&V_layer3_chain, IS_DEFAULT_VNET(curvnet))); in vnet_ipfw_nptv6_init()
58 nptv6_uninit(&V_layer3_chain, IS_DEFAULT_VNET(curvnet)); in vnet_ipfw_nptv6_uninit()
/freebsd/sys/netpfil/ipfw/pmod/
H A Dip_fw_pmod.c52 error = tcpmod_init(&V_layer3_chain, IS_DEFAULT_VNET(curvnet)); in vnet_ipfw_pmod_init()
60 tcpmod_uninit(&V_layer3_chain, IS_DEFAULT_VNET(curvnet)); in vnet_ipfw_pmod_uninit()
/freebsd/sys/netpfil/ipfw/nat64/
H A Dip_fw_nat64.c83 first = IS_DEFAULT_VNET(curvnet) ? 1: 0; in vnet_ipfw_nat64_init()
110 last = IS_DEFAULT_VNET(curvnet) ? 1: 0; in vnet_ipfw_nat64_uninit()
/freebsd/sys/compat/linsysfs/
H A Dlinsysfs_net.c213 if (nq->ifp == ifp && nq->vnet == curvnet) { in linsysfs_if_visible()
262 if (nq->ifp == ifp && nq->vnet == curvnet) in linsysfs_net_addif()
268 nq->vnet = curvnet; in linsysfs_net_addif()
281 if (nq->ifp == ifp && nq->vnet == curvnet) { in linsysfs_net_delif()
/freebsd/sys/kern/
H A Dkern_hhook.c321 KASSERT(curvnet != NULL, ("curvnet is NULL")); in hhook_head_register()
322 tmphhh->hhh_vid = (uintptr_t)curvnet; in hhook_head_register()
417 KASSERT(curvnet != NULL, ("curvnet is NULL")); in hhook_head_get()
418 if (hhh->hhh_vid != (uintptr_t)curvnet) in hhook_head_get()
H A Dsubr_trap.c173 VNET_ASSERT(curvnet == NULL, in userret()
175 __func__, td, p->p_pid, td->td_name, curvnet, in userret()
H A Duipc_domain.c219 MPASS(IS_DEFAULT_VNET(curvnet)); in domain_add()
/freebsd/sys/ddb/
H A Ddb_sym.c159 *valuep = (db_expr_t)curvnet; in db_var_curvnet()
265 vnet = curvnet; in db_value_of_name_vnet()
/freebsd/sys/netinet6/
H A Din6_gif.c461 if (!IS_DEFAULT_VNET(curvnet)) in in6_gif_init()
476 if (IS_DEFAULT_VNET(curvnet)) { in in6_gif_uninit()
H A Dip6_gre.c555 if (!IS_DEFAULT_VNET(curvnet)) in in6_gre_init()
566 if (IS_DEFAULT_VNET(curvnet)) { in in6_gre_uninit()
H A Dnd6.c261 nd6_slowtimo, curvnet); in nd6_init()
264 callout_reset(&V_nd6_timer_ch, hz, nd6_timer, curvnet); in nd6_init()
267 if (IS_DEFAULT_VNET(curvnet)) { in nd6_init()
284 if (IS_DEFAULT_VNET(curvnet)) { in nd6_destroy()
1106 nd6_timer, curvnet); in nd6_timer()
2152 nd6_slowtimo, curvnet); in nd6_slowtimo()
H A Din6_ifattach.c956 V_ip6_temp_regen_advance) * hz, in6_tmpaddrtimer, curvnet); in in6_tmpaddrtimer()
998 in6_tmpaddrtimer, curvnet); in in6_ifattach_init()
/freebsd/sys/netinet/
H A Din_gif.c430 if (!IS_DEFAULT_VNET(curvnet)) in in_gif_init()
445 if (IS_DEFAULT_VNET(curvnet)) { in in_gif_uninit()
H A Dip_gre.c559 if (!IS_DEFAULT_VNET(curvnet)) in in_gre_init()
570 if (IS_DEFAULT_VNET(curvnet)) { in in_gre_uninit()
H A Dtcp_hostcache.c287 tcp_hc_purge, curvnet); in tcp_hc_init()
841 tcp_hc_purge, curvnet); in sysctl_tcp_hc_purgenow()
/freebsd/sys/netlink/
H A Dnetlink_module.c82 curvnet, &V_nl_ctl); in vnet_nl_init()
/freebsd/sys/netpfil/pf/
H A Dpf_syncookies.c279 pf_syncookie_rotate, curvnet); in pf_synflood_check()
402 PF_SYNCOOKIE_SECRET_LIFETIME * hz, pf_syncookie_rotate, curvnet); in pf_syncookie_newkey()
/freebsd/sys/rpc/
H A Dclnt_nl.c278 .cr_vnet = curvnet, in clnt_nl_call()
426 && cr->cr_vnet == curvnet in clnt_nl_reply()
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dmlfk_ipl.c225 if (IS_DEFAULT_VNET(curvnet)) { in vnet_ipf_init()
297 if (!IS_DEFAULT_VNET(curvnet)) { in vnet_ipf_uninit()

123