| /src/sys/sys/ |
| psref.h | 1 /* $NetBSD: psref.h,v 1.4 2019/05/17 03:34:27 ozaki-r Exp $ */ 45 struct psref; 67 * struct psref 72 * psref_target. The contents of struct psref may be read and 75 struct psref { struct 76 SLIST_ENTRY(psref) psref_entry; 93 void psref_acquire(struct psref *, const struct psref_target *, 95 void psref_release(struct psref *, const struct psref_target *, 97 void psref_copy(struct psref *, const struct psref *, [all...] |
| userret.h | 38 #include <sys/psref.h>
|
| /src/sys/kern/ |
| subr_psref.c | 45 * space, a struct psref object. Sleeping while a passive 78 #include <sys/psref.h> 83 SLIST_HEAD(psref_head, psref); 121 struct psref *prdi_psref; 130 static void psref_debug_acquire(struct psref *); 131 static void psref_debug_release(struct psref *); 231 psref_exist(struct psref_cpu *pcpu, struct psref *psref) 233 struct psref *_psref; 236 if (_psref == psref) 550 const struct psref *psref; local [all...] |
| /src/sys/net/ |
| if_gif.h | 44 #include <sys/psref.h> 98 gif_getref_variant(struct gif_softc *sc, struct psref *psref) 106 psref_acquire(psref, &var->gv_psref, gv_psref_class); 113 gif_putref_variant(struct gif_variant *var, struct psref *psref) 117 psref_release(psref, &var->gv_psref, gv_psref_class);
|
| if_l2tp.h | 40 #include <sys/psref.h> 128 l2tp_getref_variant(struct l2tp_softc *sc, struct psref *psref) 139 psref_acquire(psref, &var->lv_psref, lv_psref_class); 146 l2tp_putref_variant(struct l2tp_variant *var, struct psref *psref) 151 psref_release(psref, &var->lv_psref, lv_psref_class); 168 struct l2tp_variant *l2tp_lookup_session_ref(uint32_t, struct psref *);
|
| pfil.c | 41 #include <sys/psref.h> 60 struct psref_target psref; member in struct:__anon7084 108 psref_target_init(&pflistset->active->psref, pfil_psref_class); 143 psref_target_destroy(&pfh->ph_in.active->psref, pfil_psref_class); 144 psref_target_destroy(&pfh->ph_out.active->psref, pfil_psref_class); 145 psref_target_destroy(&pfh->ph_ifaddr.active->psref, pfil_psref_class); 146 psref_target_destroy(&pfh->ph_ifevent.active->psref, pfil_psref_class); 219 psref_target_init(&newlist->psref, pfil_psref_class); 248 psref_target_destroy(&oldlist->psref, pfil_psref_class); 332 psref_target_init(&newlist->psref, pfil_psref_class) 410 struct psref psref; local 456 struct psref psref; local [all...] |
| if_vlan.c | 103 #include <sys/psref.h> 217 vlan_getref_linkmib(struct ifvlan *, struct psref *); 218 static void vlan_putref_linkmib(struct ifvlan_linkmib *, struct psref *); 222 struct psref *); 418 struct psref psref; local 434 checkmib = vlan_lookup_tag_psref(p, vid, &psref); 436 vlan_putref_linkmib(checkmib, &psref); 729 vlan_getref_linkmib(struct ifvlan *sc, struct psref *psref) 817 struct psref psref; local 858 struct psref psref; local 1234 struct psref psref; local 1348 struct psref psref; local 1455 struct psref psref; local 1522 struct psref psref; local [all...] |
| if_ipsec.h | 39 #include <sys/psref.h> 162 if_ipsec_getref_variant(struct ipsec_softc *sc, struct psref *psref) 170 psref_acquire(psref, &var->iv_psref, iv_psref_class); 177 if_ipsec_putref_variant(struct ipsec_variant *var, struct psref *psref) 181 psref_release(psref, &var->iv_psref, iv_psref_class);
|
| if_gif.c | 63 #include <sys/psref.h> 456 struct psref psref; local 466 var = gif_getref_variant(sc, &psref); 515 gif_putref_variant(var, &psref); 537 struct psref psref; local 553 var = gif_getref_variant(sc, &psref); 579 gif_putref_variant(var, &psref); 591 struct psref psref local 636 struct psref psref; local 743 struct psref psref; local 1109 struct psref psref; local [all...] |
| if_l2tp.c | 412 struct psref psref; local 415 var = l2tp_getref_variant(sc, &psref); 449 l2tp_putref_variant(var, &psref); 546 struct psref psref; local 549 var = l2tp_getref_variant(sc, &psref); 554 l2tp_putref_variant(var, &psref); 646 struct psref psref; local 668 struct psref psref; local 706 struct psref psref; local [all...] |
| if_bridge.c | 277 struct psref *); 280 struct psref *); 282 struct psref *); 287 struct psref *); 655 bridge_lookup_member(struct bridge_softc *sc, const char *name, struct psref *psref) 669 bridge_acquire_member(sc, bif, psref); 683 struct psref *psref) 692 psref_acquire(psref, &bif->bif_psref 833 struct psref psref; local 976 struct psref psref; local 998 struct psref psref; local 1185 struct psref psref; local 1340 struct psref psref; local 1397 struct psref psref; local 1694 struct psref psref; local 1819 struct psref psref; local 2003 struct psref psref; local 2135 struct psref psref; local [all...] |
| if_ipsec.c | 51 #include <sys/psref.h> 538 struct psref psref; local 547 var = if_ipsec_getref_variant(sc, &psref); 599 if_ipsec_putref_variant(var, &psref); 620 struct psref psref; local 640 var = if_ipsec_getref_variant(sc, &psref); 674 if_ipsec_putref_variant(var, &psref); 802 struct psref psref local 1217 struct psref psref; local 1501 struct psref psref; local 1550 struct psref psref; local [all...] |
| if.c | 596 struct psref psref; local 597 ifa_acquire(ifa, &psref); 603 ifa_release(ifa, &psref); 1169 struct psref psref; local 1170 psref_acquire(&psref, &ifp->if_psref, ifnet_psref_class); 1174 psref_release(&psref, &ifp->if_psref, ifnet_psref_class); 1430 * so we don't need to take a lock or psref. Avoid using 1577 struct psref psref local 1603 struct psref psref; local 2197 struct psref psref; local 2540 struct psref psref; local 3463 struct psref psref; local 3661 struct psref psref; local 4063 struct psref psref; local [all...] |
| /src/sys/netinet6/ |
| nd6_rtr.c | 67 struct psref psref; local 70 ifp = m_get_rcvif_psref(m, &psref); 95 m_put_rcvif_psref(ifp, &psref); 113 m_put_rcvif_psref(ifp, &psref); 146 m_put_rcvif_psref(ifp, &psref); 153 m_put_rcvif_psref(ifp, &psref);
|
| in6_gif.c | 278 struct psref psref_var; 288 struct psref psref; local 289 struct ifnet *rcvif = m_get_rcvif_psref(m, &psref); 291 m_put_rcvif_psref(rcvif, &psref); 297 m_put_rcvif_psref(rcvif, &psref); 410 struct psref psref; local 414 ifp = m_get_rcvif_psref(m, &psref); 418 m_put_rcvif_psref(ifp, &psref); 475 struct psref psref; local [all...] |
| in6_l2tp.c | 246 struct psref psref; local 273 var = l2tp_lookup_session_ref(sess_id, &psref); 341 l2tp_putref_variant(var, &psref); 358 struct psref psref; local 364 var = l2tp_getref_variant(sc, &psref); 391 l2tp_putref_variant(var, &psref);
|
| in6_var.h | 135 ia6_acquire(struct in6_ifaddr *ia, struct psref *psref) 139 ifa_acquire(&ia->ia_ifa, psref); 143 ia6_release(struct in6_ifaddr *ia, struct psref *psref) 148 ifa_release(&ia->ia_ifa, psref); 588 in6ifa_ifpforlinklocal_psref(const struct ifnet *, int, struct psref *); 593 struct psref *); 598 in6ifa_first_lladdr_psref(const struct ifnet *, struct psref *);
|
| /src/sys/netinet/ |
| in_var.h | 128 ia4_acquire(struct in_ifaddr *ia, struct psref *psref) 132 ifa_acquire(&ia->ia_ifa, psref); 136 ia4_release(struct in_ifaddr *ia, struct psref *psref) 141 ifa_release(&ia->ia_ifa, psref); 274 in_get_ia_psref(struct in_addr addr, struct psref *psref) 282 ia4_acquire(ia, psref); 307 in_get_ia_on_iface_psref(struct in_addr addr, struct ifnet *ifp, struct psref *psref [all...] |
| ip_encap.c | 80 #include <sys/psref.h> 112 struct psref *); 116 struct psref *); 195 struct psref *match_psref) 228 struct psref elem_psref; 237 psref_acquire(&elem_psref, &ep->psref, 248 psref_release(&elem_psref, &ep->psref, 256 psref_release(match_psref, &match->psref, 265 psref_release(&elem_psref, &ep->psref, 271 struct psref elem_psref [all...] |
| in_l2tp.c | 250 struct psref psref; local 277 var = l2tp_lookup_session_ref(sess_id, &psref); 346 l2tp_putref_variant(var, &psref); 363 struct psref psref; local 369 var = l2tp_getref_variant(sc, &psref); 396 l2tp_putref_variant(var, &psref);
|
| ip_encap.h | 39 #include <sys/psref.h> 97 struct psref_target psref; member in struct:encaptab
|
| /src/sys/net/lagg/ |
| if_laggproto.c | 112 struct lagg_proto_port *, struct psref *); 221 struct lagg_proto_port *pport, struct psref *psref) 247 lagg_port_getref(lp, psref); 479 struct psref psref; local 481 lp = lagg_link_active(psc, NULL, &psref); 490 lagg_port_putref(lp, &psref); 501 struct psref psref; local 534 struct psref psref; local 593 struct psref psref; local 698 struct psref psref; local [all...] |
| if_lagg.c | 42 #include <sys/psref.h> 184 lagg_variant_getref(struct lagg_softc *, struct psref *); 185 static void lagg_variant_putref(struct lagg_variant *, struct psref *); 555 struct psref psref; local 578 ifp_port = if_get(rp->rp_portname, &psref); 585 if_put(ifp_port, &psref); 593 ifp_port = if_get(rp->rp_portname, &psref); 600 if_put(ifp_port, &psref); 604 ifp_port = if_get(rp->rp_portname, &psref); 1012 struct psref psref; local 1094 struct psref psref; local 1124 struct psref psref; local 1441 struct psref psref; local 1487 struct psref psref; local 1573 struct psref psref; local 1623 struct psref psref; local 2599 struct psref psref; local 2826 struct psref psref; local [all...] |
| /src/sys/compat/common/ |
| uipc_syscalls_40.c | 46 struct psref psref; local 71 if_acquire(ifp, &psref); 95 struct psref psref_ifa; 153 if_release(ifp, &psref); 165 if_release(ifp, &psref);
|
| /src/sys/net/npf/ |
| npf_ext_log.c | 87 struct psref psref; local 135 ifp = if_get_byindex(log->if_idx, &psref); 147 if_put(ifp, &psref);
|