Home
last modified time | relevance | path

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

123

/freebsd-11-stable/sys/net/
HDvnet.h171 #define curvnet curthread->td_vnet macro
193 __FILE__, __LINE__, __func__, curvnet, (arg))); \
194 struct vnet *saved_vnet = curvnet; \
196 curvnet = arg; \
207 VNET_ASSERT(curvnet != NULL && (saved_vnet == NULL || \
210 __FILE__, __LINE__, __func__, curvnet, saved_vnet)); \
211 curvnet = saved_vnet; \
218 __FILE__, __LINE__, __func__, curvnet, (arg))); \
219 struct vnet *saved_vnet = curvnet; \
220 curvnet = arg;
[all …]
HDvnet.c324 curvnet = prison0.pr_vnet = vnet0 = vnet_alloc(); in vnet0_init()
332 curvnet = NULL; in vnet_init_done()
576 curvnet->vnet_state = vs->subsystem; in vnet_sysinit()
595 curvnet->vnet_state = vs->subsystem; in vnet_sysuninit()
672 (vnr->old_vnet == vnr->new_vnet) == (curvnet == old_vnet)) in vnet_log_recursion()
682 vnr->new_vnet = curvnet; in vnet_log_recursion()
HDnetisr.c443 KASSERT(curvnet != NULL, ("%s: curvnet is NULL", __func__)); in netisr_register()
444 KASSERT(IS_DEFAULT_VNET(curvnet), ("%s: curvnet %p is not vnet0 %p", in netisr_register()
445 __func__, curvnet, vnet0)); in netisr_register()
669 KASSERT(curvnet != NULL, ("%s: curvnet is NULL", __func__)); in netisr_register_vnet()
737 KASSERT(curvnet != NULL, ("%s: curvnet is NULL", __func__)); in netisr_unregister_vnet()
747 netisr_drain_proto_vnet(curvnet, proto); in netisr_unregister_vnet()
HDif_debug.c123 db_printf("vnet=%p\n", curvnet); in DB_SHOW_ALL_COMMAND()
HDif_clone.c190 if (ifc == NULL && !IS_DEFAULT_VNET(curvnet)) { in if_clone_create()
272 if (ifc == NULL && !IS_DEFAULT_VNET(curvnet)) { in if_clone_destroy()
HDif.c539 ifp->if_vnet = curvnet; in if_alloc()
761 ifp->if_vnet = curvnet; in if_attach_internal()
763 ifp->if_home_vnet = curvnet; in if_attach_internal()
878 curvnet->vnet_ifcnt++; in if_attach_internal()
886 if (IS_DEFAULT_VNET(curvnet)) in if_attach_internal()
1061 curvnet->vnet_ifcnt--; in if_detach_internal()
1140 if (IS_DEFAULT_VNET(curvnet)) in if_detach_internal()
2327 if (IS_DEFAULT_VNET(curvnet)) in do_link_state_change()
/freebsd-11-stable/sys/netpfil/ipfw/nptv6/
HDip_fw_nptv6.c54 return (nptv6_init(&V_layer3_chain, IS_DEFAULT_VNET(curvnet))); in vnet_ipfw_nptv6_init()
61 nptv6_uninit(&V_layer3_chain, IS_DEFAULT_VNET(curvnet)); in vnet_ipfw_nptv6_uninit()
/freebsd-11-stable/sys/netpfil/ipfw/pmod/
HDip_fw_pmod.c55 error = tcpmod_init(&V_layer3_chain, IS_DEFAULT_VNET(curvnet)); in vnet_ipfw_pmod_init()
63 tcpmod_uninit(&V_layer3_chain, IS_DEFAULT_VNET(curvnet)); in vnet_ipfw_pmod_uninit()
/freebsd-11-stable/sys/netpfil/ipfw/nat64/
HDip_fw_nat64.c85 first = IS_DEFAULT_VNET(curvnet) ? 1: 0; in vnet_ipfw_nat64_init()
112 last = IS_DEFAULT_VNET(curvnet) ? 1: 0; in vnet_ipfw_nat64_uninit()
/freebsd-11-stable/sys/kern/
HDkern_hhook.c322 KASSERT(curvnet != NULL, ("curvnet is NULL")); in hhook_head_register()
323 tmphhh->hhh_vid = (uintptr_t)curvnet; in hhook_head_register()
418 KASSERT(curvnet != NULL, ("curvnet is NULL")); in hhook_head_get()
419 if (hhh->hhh_vid != (uintptr_t)curvnet) in hhook_head_get()
HDsubr_trap.c186 VNET_ASSERT(curvnet == NULL, in userret()
188 __func__, td, p->p_pid, td->td_name, curvnet, in userret()
/freebsd-11-stable/sys/contrib/ipfilter/netinet/
HDmlfk_ipl.c214 if (IS_DEFAULT_VNET(curvnet)) { in vnet_ipf_init()
367 arg1 = (void *)((uintptr_t)arg1 - curvnet->vnet_data_base); in sysctl_ipf_int_nat()
384 arg1 = (void *)((uintptr_t)arg1 - curvnet->vnet_data_base); in sysctl_ipf_int_state()
401 arg1 = (void *)((uintptr_t)arg1 - curvnet->vnet_data_base); in sysctl_ipf_int_auth()
418 arg1 = (void *)((uintptr_t)arg1 - curvnet->vnet_data_base); in sysctl_ipf_int_frag()
/freebsd-11-stable/sys/ddb/
HDdb_sym.c157 *valuep = (db_expr_t)curvnet; in db_var_curvnet()
264 vnet = curvnet; in db_value_of_name_vnet()
/freebsd-11-stable/sys/netinet6/
HDin6_rmx.c227 in6_mtutimo(curvnet); /* kick off timeout first time */ in in6_inithead()
HDnd6.c226 nd6_slowtimo, curvnet); in nd6_init()
229 callout_reset(&V_nd6_timer_ch, hz, nd6_timer, curvnet); in nd6_init()
232 if (IS_DEFAULT_VNET(curvnet)) { in nd6_init()
247 if (IS_DEFAULT_VNET(curvnet)) { in nd6_destroy()
1069 nd6_timer, curvnet); in nd6_timer()
2149 nd6_slowtimo, curvnet); in nd6_slowtimo()
HDin6_ifattach.c862 V_ip6_temp_regen_advance) * hz, in6_tmpaddrtimer, curvnet); in in6_tmpaddrtimer()
933 in6_tmpaddrtimer, curvnet); in in6_ifattach_init()
HDscope6.c92 if (!IS_DEFAULT_VNET(curvnet)) in scope6_init()
/freebsd-11-stable/sys/netpfil/pf/
HDpf_if.c145 pfi_attach_group_event, curvnet, EVENTHANDLER_PRI_ANY); in pfi_initialize()
147 pfi_change_group_event, curvnet, EVENTHANDLER_PRI_ANY); in pfi_initialize()
149 pfi_detach_group_event, curvnet, EVENTHANDLER_PRI_ANY); in pfi_initialize()
/freebsd-11-stable/sys/netinet/
HDtcp_hostcache.c251 tcp_hc_purge, curvnet); in tcp_hc_init()
756 tcp_hc_purge, curvnet); in sysctl_tcp_hc_purgenow()
HDip_mroute.c686 curvnet); in ip_mrouter_init()
688 curvnet); in ip_mrouter_init()
690 curvnet); in ip_mrouter_init()
1478 curvnet); in expire_upcalls()
2296 curvnet); in expire_bw_upcalls_send()
2313 curvnet); in expire_bw_meter_process()
HDtcp_fastopen.c212 V_tcp_fastopen_autokey_ctx.v = curvnet; in tcp_fastopen_init()
/freebsd-11-stable/sys/netipsec/
HDxform_ipcomp.c257 xd->vnet = curvnet; in ipcomp_input()
503 xd->vnet = curvnet; in ipcomp_output()
HDxform_esp.c425 xd->vnet = curvnet; in esp_input()
879 xd->vnet = curvnet; in esp_output()
HDxform_ah.c690 xd->vnet = curvnet; in ah_input()
1071 xd->vnet = curvnet; in ah_output()
/freebsd-11-stable/sys/netpfil/ipfw/
HDip_fw_nat.c106 KASSERT(curvnet == ifp->if_vnet, in ifaddr_change()
107 ("curvnet(%p) differs from iface vnet(%p)", curvnet, ifp->if_vnet)); in ifaddr_change()

123