__containerof
m1 = __containerof((void *)*rl,
mn = __containerof((void *)m->m_lock.m_rb_lnk,
td = first ? NULL : __containerof(p, struct thread,
td = __containerof(pcb, struct thread, td_md.md_pcb);
return (__containerof(iq, struct sge_rxq, iq));
return (__containerof(iq, struct sge_ofld_rxq, iq));
return (__containerof(t, struct tlspcb, com));
return (__containerof(t, struct tlspcb, com));
return (__containerof(ip, struct icl_cxgbei_pdu, ip));
return (__containerof(ic, struct icl_cxgbei_conn, ic));
return (__containerof(t, struct cxgbe_rate_tag, com));
struct l2t_data *d = __containerof(e, struct l2t_data, l2tab[e->idx]);
struct wrqe *wr = __containerof(w, struct wrqe, wr);
return (__containerof(tod, struct tom_data, tod));
obj = __containerof(map_list, struct drm_gem_object, map_list);
#define tsk_to_req(t) __containerof((t), struct scmi_req, tsk)
#define buf_to_msg(b) __containerof((b), struct scmi_msg, payld)
#define msg_to_req(m) __containerof((m), struct scmi_req, msg)
#define hdr_to_msg(h) __containerof((h), struct scmi_msg, hdr)
controller = __containerof(info, struct acpi_gpiobus_softc,
tlc = __containerof(ctx, struct hidbus_ivars, epoch_ctx);
struct ice_softc *sc = __containerof(hw, struct ice_softc, hw);
struct ice_softc *sc = __containerof(hw, struct ice_softc, hw);
struct ice_softc *sc = __containerof(hw, struct ice_softc, hw);
struct ice_softc *sc = __containerof(hw, struct ice_softc, hw);
struct ice_softc *sc = __containerof(hw, struct ice_softc, hw);
__containerof(ptr, type, member)
sc = __containerof(entry, struct ice_softc, rdma_entry);
#define ice_rdma_peer_to_entry(p) __containerof(p, struct ice_rdma_entry, peer)
#define ice_rdma_entry_to_sc(e) __containerof(e, struct ice_softc, rdma_entry)
sc = __containerof(info, struct acpi_iicbus_softc, space_handler_info);
__containerof(bus, struct atmegadci_softc, sc_bus)
__containerof(bus, struct avr32dci_softc, sc_bus)
__containerof(bus, struct dwc_otg_softc, sc_bus)
__containerof(bus, ehci_softc_t, sc_bus)
__containerof(bus, struct musbotg_softc, sc_bus)
__containerof(bus, ohci_softc_t, sc_bus)
__containerof(bus, uhci_softc_t, sc_bus)
__containerof(bus, struct uss820dci_softc, sc_bus)
__containerof(bus, struct xhci_softc, sc_bus)
__containerof(dpt, struct usb_xfer_root, dma_parent_tag)
r = __containerof(smr, struct noise_remote, r_smr);
kp = __containerof(smr, struct noise_keypair, kp_smr);
#define cdev2priv(c) __containerof(c, struct cdev_priv, cdp_c)
p = __containerof(p->p_orphan.le_prev, struct proc,
parent = __containerof(p->p_orphan.le_prev, struct proc,
mref = __containerof(refcnt, struct mbuf, m_ext.ext_count);
mref = __containerof(refcnt, struct mbuf, m_ext.ext_count);
mref = __containerof(refcnt, struct mbuf, m_ext.ext_count);
#define mtxlock2mtx(c) (__containerof(c, struct mtx, mtx_lock))
rmsipi = __containerof(arg, struct rmslock_ipi, srcra);
rmsipi = __containerof(arg, struct rmslock_ipi, srcra);
#define rwlock2rw(c) (__containerof(c, struct rwlock, rw_lock))
record = __containerof(cr, struct epoch_record, er_record);
__containerof(ctx, struct epoch_record, er_drain_ctx)->er_parent;
rs = __containerof(ptree, struct rangeset, rs_trie);
so = __containerof(sb, struct socket, so_rcv);
so = __containerof(sb, struct socket, so_rcv);
ncp_ts = __containerof(ncp, struct namecache_ts, nc_nc);
ncp_ts = __containerof(ncp, struct namecache_ts, nc_nc);
n2_ts = __containerof(n2, struct namecache_ts, nc_nc);
ncp_ts = __containerof(ncp, struct namecache_ts, nc_nc);
ncp_ts = __containerof(ncp, struct namecache_ts, nc_nc);
return (__containerof(cnp, struct nameidata, ni_cnd));
vfsopipi = __containerof(arg, struct vfs_op_barrier_ipi, srcra);
vfsopipi = __containerof(arg, struct vfs_op_barrier_ipi, srcra);
fcode = __containerof((void *)d->bd_wfilter,
fcode = __containerof((void *)d->bd_rfilter,
d = __containerof(ctx, struct bpf_d, epoch_ctx);
p = __containerof((void *)d->bd_rfilter,
p = __containerof((void *)d->bd_wfilter,
bp = __containerof(ctx, struct bpf_if, epoch_ctx);
ptr = __containerof(ctx, struct bpf_program_buffer, epoch_ctx);
ifa = __containerof(ctx, struct ifaddr, ifa_epoch_ctx);
ifma = __containerof(ctx, struct ifmultiaddr, ifma_epoch_ctx);
struct ifnet *ifp = __containerof(ctx, struct ifnet, if_epoch_ctx);
bif = __containerof(ctx, struct bridge_iflist, bif_epoch_ctx);
brt = __containerof(ctx, struct bridge_rtnode, brt_epoch_ctx);
sc = __containerof(ctx, struct bridge_softc, sc_epoch_ctx);
gs = __containerof(ctx, struct gre_socket, epoch_ctx);
return (__containerof(mst, struct lagg_snd_tag, com));
lp = __containerof(ec, struct lagg_port, lp_epoch_ctx);
sc = __containerof(ctx, struct ovpn_softc, epoch_ctx);
struct ovpn_kpeer *peer = __containerof(ctx, struct ovpn_kpeer,
tp = __containerof(ctx, struct tuntap_softc, tun_epoch_ctx);
return (__containerof(mst, struct vlan_snd_tag, com));
struct vlan_mc_entry *mc = __containerof(ctx, struct vlan_mc_entry, mc_epoch_ctx);
link = __containerof(ctx, struct pfil_link, link_epoch_ctx);
fd = __containerof(ctx, struct fib_data, fd_epoch_ctx);
fdh = __containerof(ctx, struct fib_dp_header, fdh_epoch_ctx);
return (__containerof((void *)dp, struct fib_dp_header, fdh_idx));
nrd = __containerof(ctx, struct nhop_release_data, ctx);
nhg_priv = __containerof(ctx, struct nhgrp_priv, nhg_epoch_ctx);
ctl = __containerof(ctx, struct nh_control, ctl_epoch_ctx);
nh_priv = __containerof(ctx, struct nhop_priv, nh_epoch_ctx);
rt = __containerof(ctx, struct rtentry, rt_epoch_ctx);
rs = __containerof(ctx, struct rib_subscription, epoch_ctx);
lle = __containerof(ctx, struct llentry, lle_epoch_ctx);
struct dxr *dxr = __containerof(ctx, struct dxr, epoch_ctx);
grp = __containerof(ctx, struct inpcblbgroup, il_epoch_ctx);
struct divcb *dcb = __containerof(ctx, struct divcb, dcb_epochctx);
s = __containerof(gs, struct in_gre_socket, base);
s = __containerof(gs, struct in_gre_socket, base);
le->m_last_mbuf = __containerof(pp, struct mbuf, m_nextpkt);
rs = __containerof(ctx, struct tcp_rate_set, rs_epoch_ctx);
#define intotcpcb(inp) __containerof((inp), struct tcpcb, t_inpcb)
#define intoudpcb(ip) __containerof((ip), struct udpcb, u_inpcb)
lle = __containerof(ctx, struct llentry, lle_epoch_ctx);
__containerof(ctx, struct in6_ifextra, epoch_ctx);
s = __containerof(gs, struct in6_gre_socket, base);
s = __containerof(gs, struct in6_gre_socket, base);
tag = __containerof(xtag, struct ipsec_accel_in_tag, tag);
nlp = __containerof(ctx, struct nlpcb, nl_epoch_ctx);
unhop = __containerof(ctx, struct user_nhop, un_epoch_ctx);
ji = __containerof(ctx, struct nat64lsn_job_item, epoch_ctx);
__containerof(no, struct nat64lsn_instance, no), uc);
return (__containerof(no, struct nat64lsn_instance, no));
i0 = __containerof(no, struct nat64lsn_instance, no);
sc = __containerof(ctx, struct pflow_softc, sc_epoch_ctx);
(TAILQ_EMPTY(head) ? NULL : __containerof((head)->tqh_last, QUEUE_TYPEOF(type), field.tqe_next))
__containerof((elm)->field.tqe_prev, QUEUE_TYPEOF(type), field.tqe_next))
__containerof((head)->stqh_last, \
__containerof((elm)->field.le_prev, \
__containerof((oid_ptr)->oid_parent, struct sysctl_oid, \
#define bo2vnode(bo) __containerof((bo), struct vnode, v_bufobj)
ndp = __containerof(cnp, struct nameidata, ni_cnd);
return (__containerof(slab, struct uma_hash_slab, uhs_slab));
__containerof((unit), struct amdiommu_unit, iommu)
__containerof((domain), struct amdiommu_domain, iodom)
__containerof((ctx), struct amdiommu_ctx, context)
__containerof((dmar), struct dmar_unit, iommu)
__containerof((domain), struct dmar_domain, iodom)
__containerof((ctx), struct dmar_ctx, context)
domain = __containerof(idomain, struct dmar_domain, iodom);
#ifndef __containerof
#define ECC_CCTX(c) (__containerof(c, const struct ecc_sign_ctx, sctx))
#define ECC_CTX(c) (__containerof(c, struct ecc_sign_ctx, sctx))