Symbol: __containerof
lib/libthr/thread/thr_mutex.c
541
m1 = __containerof((void *)*rl,
lib/libthr/thread/thr_mutex.c
574
mn = __containerof((void *)m->m_lock.m_rb_lnk,
sys/amd64/amd64/pmap.c
1094
td = first ? NULL : __containerof(p, struct thread,
sys/amd64/amd64/vm_machdep.c
114
td = __containerof(pcb, struct thread, td_md.md_pcb);
sys/dev/cxgbe/adapter.h
719
return (__containerof(iq, struct sge_rxq, iq));
sys/dev/cxgbe/adapter.h
759
return (__containerof(iq, struct sge_ofld_rxq, iq));
sys/dev/cxgbe/crypto/t6_kern_tls.c
114
return (__containerof(t, struct tlspcb, com));
sys/dev/cxgbe/crypto/t7_kern_tls.c
124
return (__containerof(t, struct tlspcb, com));
sys/dev/cxgbe/cxgbei/cxgbei.h
104
return (__containerof(ip, struct icl_cxgbei_pdu, ip));
sys/dev/cxgbe/cxgbei/cxgbei.h
74
return (__containerof(ic, struct icl_cxgbei_conn, ic));
sys/dev/cxgbe/offload.h
103
return (__containerof(t, struct cxgbe_rate_tag, com));
sys/dev/cxgbe/t4_l2t.h
103
struct l2t_data *d = __containerof(e, struct l2t_data, l2tab[e->idx]);
sys/dev/cxgbe/t4_sge.c
3028
struct wrqe *wr = __containerof(w, struct wrqe, wr);
sys/dev/cxgbe/tom/t4_tom.h
369
return (__containerof(tod, struct tom_data, tod));
sys/dev/drm2/drm_gem.c
451
obj = __containerof(map_list, struct drm_gem_object, map_list);
sys/dev/firmware/arm/scmi.c
137
#define tsk_to_req(t) __containerof((t), struct scmi_req, tsk)
sys/dev/firmware/arm/scmi.c
138
#define buf_to_msg(b) __containerof((b), struct scmi_msg, payld)
sys/dev/firmware/arm/scmi.c
139
#define msg_to_req(m) __containerof((m), struct scmi_req, msg)
sys/dev/firmware/arm/scmi.h
81
#define hdr_to_msg(h) __containerof((h), struct scmi_msg, hdr)
sys/dev/gpio/acpi_gpiobus.c
212
controller = __containerof(info, struct acpi_gpiobus_softc,
sys/dev/hid/hidbus.c
415
tlc = __containerof(ctx, struct hidbus_ivars, epoch_ctx);
sys/dev/ice/ice_osdep.c
193
struct ice_softc *sc = __containerof(hw, struct ice_softc, hw);
sys/dev/ice/ice_osdep.c
211
struct ice_softc *sc = __containerof(hw, struct ice_softc, hw);
sys/dev/ice/ice_osdep.c
239
struct ice_softc *sc = __containerof(hw, struct ice_softc, hw);
sys/dev/ice/ice_osdep.c
258
struct ice_softc *sc = __containerof(hw, struct ice_softc, hw);
sys/dev/ice/ice_osdep.c
82
struct ice_softc *sc = __containerof(hw, struct ice_softc, hw);
sys/dev/ice/ice_osdep.h
233
__containerof(ptr, type, member)
sys/dev/ice/ice_rdma.c
529
sc = __containerof(entry, struct ice_softc, rdma_entry);
sys/dev/ice/ice_rdma_internal.h
72
#define ice_rdma_peer_to_entry(p) __containerof(p, struct ice_rdma_entry, peer)
sys/dev/ice/ice_rdma_internal.h
73
#define ice_rdma_entry_to_sc(e) __containerof(e, struct ice_softc, rdma_entry)
sys/dev/iicbus/acpi_iicbus.c
254
sc = __containerof(info, struct acpi_iicbus_softc, space_handler_info);
sys/dev/usb/controller/atmegadci.c
81
__containerof(bus, struct atmegadci_softc, sc_bus)
sys/dev/usb/controller/avr32dci.c
80
__containerof(bus, struct avr32dci_softc, sc_bus)
sys/dev/usb/controller/dwc_otg.c
92
__containerof(bus, struct dwc_otg_softc, sc_bus)
sys/dev/usb/controller/ehci.c
92
__containerof(bus, ehci_softc_t, sc_bus)
sys/dev/usb/controller/musb_otg.c
84
__containerof(bus, struct musbotg_softc, sc_bus)
sys/dev/usb/controller/ohci.c
81
__containerof(bus, ohci_softc_t, sc_bus)
sys/dev/usb/controller/uhci.c
85
__containerof(bus, uhci_softc_t, sc_bus)
sys/dev/usb/controller/uss820dci.c
79
__containerof(bus, struct uss820dci_softc, sc_bus)
sys/dev/usb/controller/xhci.c
88
__containerof(bus, struct xhci_softc, sc_bus)
sys/dev/usb/usb_transfer.h
52
__containerof(dpt, struct usb_xfer_root, dma_parent_tag)
sys/dev/wg/wg_noise.c
471
r = __containerof(smr, struct noise_remote, r_smr);
sys/dev/wg/wg_noise.c
755
kp = __containerof(smr, struct noise_keypair, kp_smr);
sys/fs/devfs/devfs_int.h
75
#define cdev2priv(c) __containerof(c, struct cdev_priv, cdp_c)
sys/kern/kern_exit.c
120
p = __containerof(p->p_orphan.le_prev, struct proc,
sys/kern/kern_exit.c
125
parent = __containerof(p->p_orphan.le_prev, struct proc,
sys/kern/kern_mbuf.c
1183
mref = __containerof(refcnt, struct mbuf, m_ext.ext_count);
sys/kern/kern_mbuf.c
1276
mref = __containerof(refcnt, struct mbuf, m_ext.ext_count);
sys/kern/kern_mbuf.c
968
mref = __containerof(refcnt, struct mbuf, m_ext.ext_count);
sys/kern/kern_mutex.c
88
#define mtxlock2mtx(c) (__containerof(c, struct mtx, mtx_lock))
sys/kern/kern_rmlock.c
1123
rmsipi = __containerof(arg, struct rmslock_ipi, srcra);
sys/kern/kern_rmlock.c
1143
rmsipi = __containerof(arg, struct rmslock_ipi, srcra);
sys/kern/kern_rwlock.c
66
#define rwlock2rw(c) (__containerof(c, struct rwlock, rw_lock))
sys/kern/subr_epoch.c
575
record = __containerof(cr, struct epoch_record, er_record);
sys/kern/subr_epoch.c
947
__containerof(ctx, struct epoch_record, er_drain_ctx)->er_parent;
sys/kern/subr_rangeset.c
61
rs = __containerof(ptree, struct rangeset, rs_trie);
sys/kern/uipc_ktls.c
1854
so = __containerof(sb, struct socket, so_rcv);
sys/kern/uipc_ktls.c
2240
so = __containerof(sb, struct socket, so_rcv);
sys/kern/vfs_cache.c
2017
ncp_ts = __containerof(ncp, struct namecache_ts, nc_nc);
sys/kern/vfs_cache.c
2583
ncp_ts = __containerof(ncp, struct namecache_ts, nc_nc);
sys/kern/vfs_cache.c
2631
n2_ts = __containerof(n2, struct namecache_ts, nc_nc);
sys/kern/vfs_cache.c
644
ncp_ts = __containerof(ncp, struct namecache_ts, nc_nc);
sys/kern/vfs_cache.c
834
ncp_ts = __containerof(ncp, struct namecache_ts, nc_nc);
sys/kern/vfs_lookup.c
909
return (__containerof(cnp, struct nameidata, ni_cnd));
sys/kern/vfs_mount.c
1944
vfsopipi = __containerof(arg, struct vfs_op_barrier_ipi, srcra);
sys/kern/vfs_mount.c
1958
vfsopipi = __containerof(arg, struct vfs_op_barrier_ipi, srcra);
sys/net/bpf.c
1857
fcode = __containerof((void *)d->bd_wfilter,
sys/net/bpf.c
1866
fcode = __containerof((void *)d->bd_rfilter,
sys/net/bpf.c
2608
d = __containerof(ctx, struct bpf_d, epoch_ctx);
sys/net/bpf.c
2611
p = __containerof((void *)d->bd_rfilter,
sys/net/bpf.c
2619
p = __containerof((void *)d->bd_wfilter,
sys/net/bpf.c
345
bp = __containerof(ctx, struct bpf_if, epoch_ctx);
sys/net/bpf.c
394
ptr = __containerof(ctx, struct bpf_program_buffer, epoch_ctx);
sys/net/if.c
1658
ifa = __containerof(ctx, struct ifaddr, ifa_epoch_ctx);
sys/net/if.c
3357
ifma = __containerof(ctx, struct ifmultiaddr, ifma_epoch_ctx);
sys/net/if.c
628
struct ifnet *ifp = __containerof(ctx, struct ifnet, if_epoch_ctx);
sys/net/if_bridge.c
1234
bif = __containerof(ctx, struct bridge_iflist, bif_epoch_ctx);
sys/net/if_bridge.c
3841
brt = __containerof(ctx, struct bridge_rtnode, brt_epoch_ctx);
sys/net/if_bridge.c
921
sc = __containerof(ctx, struct bridge_softc, sc_epoch_ctx);
sys/net/if_gre.c
677
gs = __containerof(ctx, struct gre_socket, epoch_ctx);
sys/net/if_lagg.c
1813
return (__containerof(mst, struct lagg_snd_tag, com));
sys/net/if_lagg.c
927
lp = __containerof(ec, struct lagg_port, lp_epoch_ctx);
sys/net/if_ovpn.c
2776
sc = __containerof(ctx, struct ovpn_softc, epoch_ctx);
sys/net/if_ovpn.c
574
struct ovpn_kpeer *peer = __containerof(ctx, struct ovpn_kpeer,
sys/net/if_tuntap.c
639
tp = __containerof(ctx, struct tuntap_softc, tun_epoch_ctx);
sys/net/if_vlan.c
123
return (__containerof(mst, struct vlan_snd_tag, com));
sys/net/if_vlan.c
386
struct vlan_mc_entry *mc = __containerof(ctx, struct vlan_mc_entry, mc_epoch_ctx);
sys/net/pfil.c
473
link = __containerof(ctx, struct pfil_link, link_epoch_ctx);
sys/net/route/fib_algo.c
1134
fd = __containerof(ctx, struct fib_data, fd_epoch_ctx);
sys/net/route/fib_algo.c
1552
fdh = __containerof(ctx, struct fib_dp_header, fdh_epoch_ctx);
sys/net/route/fib_algo.c
1581
return (__containerof((void *)dp, struct fib_dp_header, fdh_idx));
sys/net/route/fib_algo.c
1814
nrd = __containerof(ctx, struct nhop_release_data, ctx);
sys/net/route/nhgrp_ctl.c
421
nhg_priv = __containerof(ctx, struct nhgrp_priv, nhg_epoch_ctx);
sys/net/route/nhop.c
129
ctl = __containerof(ctx, struct nh_control, ctl_epoch_ctx);
sys/net/route/nhop_ctl.c
564
nh_priv = __containerof(ctx, struct nhop_priv, nh_epoch_ctx);
sys/net/route/route_rtentry.c
139
rt = __containerof(ctx, struct rtentry, rt_epoch_ctx);
sys/net/route/route_subscription.c
182
rs = __containerof(ctx, struct rib_subscription, epoch_ctx);
sys/netinet/in.c
1500
lle = __containerof(ctx, struct llentry, lle_epoch_ctx);
sys/netinet/in_fib_dxr.c
1148
struct dxr *dxr = __containerof(ctx, struct dxr, epoch_ctx);
sys/netinet/in_pcb.c
280
grp = __containerof(ctx, struct inpcblbgroup, il_epoch_ctx);
sys/netinet/ip_divert.c
594
struct divcb *dcb = __containerof(ctx, struct divcb, dcb_epochctx);
sys/netinet/ip_gre.c
115
s = __containerof(gs, struct in_gre_socket, base);
sys/netinet/ip_gre.c
266
s = __containerof(gs, struct in_gre_socket, base);
sys/netinet/tcp_lro_hpts.c
643
le->m_last_mbuf = __containerof(pp, struct mbuf, m_nextpkt);
sys/netinet/tcp_ratelimit.c
405
rs = __containerof(ctx, struct tcp_rate_set, rs_epoch_ctx);
sys/netinet/tcp_var.h
643
#define intotcpcb(inp) __containerof((inp), struct tcpcb, t_inpcb)
sys/netinet/udp_var.h
123
#define intoudpcb(ip) __containerof((ip), struct udpcb, u_inpcb)
sys/netinet6/in6.c
2204
lle = __containerof(ctx, struct llentry, lle_epoch_ctx);
sys/netinet6/in6_ifattach.c
902
__containerof(ctx, struct in6_ifextra, epoch_ctx);
sys/netinet6/ip6_gre.c
106
s = __containerof(gs, struct in6_gre_socket, base);
sys/netinet6/ip6_gre.c
261
s = __containerof(gs, struct in6_gre_socket, base);
sys/netipsec/ipsec_offload.c
969
tag = __containerof(xtag, struct ipsec_accel_in_tag, tag);
sys/netlink/netlink_domain.c
476
nlp = __containerof(ctx, struct nlpcb, nl_epoch_ctx);
sys/netlink/route/nexthop.c
346
unhop = __containerof(ctx, struct user_nhop, un_epoch_ctx);
sys/netpfil/ipfw/nat64/nat64lsn.c
1497
ji = __containerof(ctx, struct nat64lsn_job_item, epoch_ctx);
sys/netpfil/ipfw/nat64/nat64lsn_control.c
353
__containerof(no, struct nat64lsn_instance, no), uc);
sys/netpfil/ipfw/nat64/nat64lsn_control.c
69
return (__containerof(no, struct nat64lsn_instance, no));
sys/netpfil/ipfw/nat64/nat64lsn_control.c
869
i0 = __containerof(no, struct nat64lsn_instance, no);
sys/netpfil/pf/pflow.c
434
sc = __containerof(ctx, struct pflow_softc, sc_epoch_ctx);
sys/sys/queue.h
1011
(TAILQ_EMPTY(head) ? NULL : __containerof((head)->tqh_last, QUEUE_TYPEOF(type), field.tqe_next))
sys/sys/queue.h
1020
__containerof((elm)->field.tqe_prev, QUEUE_TYPEOF(type), field.tqe_next))
sys/sys/queue.h
510
__containerof((head)->stqh_last, \
sys/sys/queue.h
738
__containerof((elm)->field.le_prev, \
sys/sys/sysctl.h
262
__containerof((oid_ptr)->oid_parent, struct sysctl_oid, \
sys/sys/vnode.h
222
#define bo2vnode(bo) __containerof((bo), struct vnode, v_bufobj)
sys/ufs/ffs/ffs_softdep.c
3320
ndp = __containerof(cnp, struct nameidata, ni_cnd);
sys/vm/uma_int.h
407
return (__containerof(slab, struct uma_hash_slab, uhs_slab));
sys/x86/iommu/amd_iommu.h
106
__containerof((unit), struct amdiommu_unit, iommu)
sys/x86/iommu/amd_iommu.h
120
__containerof((domain), struct amdiommu_domain, iodom)
sys/x86/iommu/amd_iommu.h
124
__containerof((ctx), struct amdiommu_ctx, context)
sys/x86/iommu/intel_dmar.h
89
__containerof((dmar), struct dmar_unit, iommu)
sys/x86/iommu/intel_dmar.h
93
__containerof((domain), struct dmar_domain, iodom)
sys/x86/iommu/intel_dmar.h
97
__containerof((ctx), struct dmar_ctx, context)
sys/x86/iommu/intel_qi.c
193
domain = __containerof(idomain, struct dmar_domain, iodom);
tools/build/cross-build/include/common/sys/cdefs.h
227
#ifndef __containerof
usr.sbin/pkg/ecc.c
63
#define ECC_CCTX(c) (__containerof(c, const struct ecc_sign_ctx, sctx))
usr.sbin/pkg/ecc.c
64
#define ECC_CTX(c) (__containerof(c, struct ecc_sign_ctx, sctx))