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.c337 curvnet = prison0.pr_vnet = vnet0 = vnet_alloc(); in vnet0_init()
345 curvnet = NULL; in vnet_init_done()
621 curvnet->vnet_state = vs->subsystem; in vnet_sysinit()
640 curvnet->vnet_state = vs->subsystem; in vnet_sysuninit()
717 (vnr->old_vnet == vnr->new_vnet) == (curvnet == old_vnet)) in vnet_log_recursion()
727 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_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 Dif.c331 ifindex_table[i].ife_ifnet->if_vnet == curvnet) in sysctl_ifcount()
377 if (curvnet != NULL && ifp != NULL && ifp->if_vnet != curvnet) in ifnet_byindex()
447 curvnet->vnet_ifcnt++; in if_link_ifnet()
468 curvnet->vnet_ifcnt--; in if_unlink_ifnet()
499 pending = malloc(sizeof(struct ifnet *) * curvnet->vnet_ifcnt, in vnet_if_return()
547 ifp->if_vnet = curvnet; in if_alloc_domain()
835 ifp->if_vnet = curvnet; in if_attach_internal()
837 ifp->if_home_vnet = curvnet; in if_attach_internal()
956 if (IS_DEFAULT_VNET(curvnet)) in if_attach_internal()
1209 if (IS_DEFAULT_VNET(curvnet)) in if_detach_internal()
[all …]
/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/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/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/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.c189 VNET_ASSERT(curvnet == NULL, in userret()
191 __func__, td, p->p_pid, td->td_name, curvnet, in userret()
/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.c442 if (!IS_DEFAULT_VNET(curvnet)) in in6_gif_init()
457 if (IS_DEFAULT_VNET(curvnet)) { in in6_gif_uninit()
H A Dip6_gre.c556 if (!IS_DEFAULT_VNET(curvnet)) in in6_gre_init()
567 if (IS_DEFAULT_VNET(curvnet)) { in in6_gre_uninit()
H A Dnd6.c247 nd6_slowtimo, curvnet); in nd6_init()
250 callout_reset(&V_nd6_timer_ch, hz, nd6_timer, curvnet); in nd6_init()
253 if (IS_DEFAULT_VNET(curvnet)) { in nd6_init()
270 if (IS_DEFAULT_VNET(curvnet)) { in nd6_destroy()
1088 nd6_timer, curvnet); in nd6_timer()
2138 nd6_slowtimo, curvnet); in nd6_slowtimo()
H A Din6_ifattach.c836 V_ip6_temp_regen_advance) * hz, in6_tmpaddrtimer, curvnet); in in6_tmpaddrtimer()
894 in6_tmpaddrtimer, curvnet); in in6_ifattach_init()
/freebsd/sys/netinet/
H A Din_gif.c421 if (!IS_DEFAULT_VNET(curvnet)) in in_gif_init()
436 if (IS_DEFAULT_VNET(curvnet)) { in in_gif_uninit()
H A Dip_gre.c560 if (!IS_DEFAULT_VNET(curvnet)) in in_gre_init()
571 if (IS_DEFAULT_VNET(curvnet)) { in in_gre_uninit()
H A Dtcp_hostcache.c288 tcp_hc_purge, curvnet); in tcp_hc_init()
842 tcp_hc_purge, curvnet); in sysctl_tcp_hc_purgenow()
H A Dip_mroute.c735 TASK_INIT(&V_task, 0, ip_mrouter_upcall_thread, curvnet); in ip_mrouter_init()
740 curvnet); in ip_mrouter_init()
742 curvnet); in ip_mrouter_init()
1570 curvnet); in expire_upcalls()
1989 x->arg = curvnet; in add_bw_upcall()
2266 curvnet); in expire_bw_upcalls_send()
/freebsd/sys/netpfil/pf/
H A Dpf_syncookies.c281 pf_syncookie_rotate, curvnet); in pf_synflood_check()
404 PF_SYNCOOKIE_SECRET_LIFETIME * hz, pf_syncookie_rotate, curvnet); in pf_syncookie_newkey()
/freebsd/sys/netlink/
H A Dnetlink_module.c82 curvnet, &V_nl_ctl); in vnet_nl_init()
/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.c223 if (IS_DEFAULT_VNET(curvnet)) { in vnet_ipf_init()
295 if (!IS_DEFAULT_VNET(curvnet)) { in vnet_ipf_uninit()
/freebsd/sys/net/route/
H A Droute_tables.c299 if (IS_DEFAULT_VNET(curvnet)) { in vnet_rtables_init()

123