Symbol: __offsetof
lib/libmemstat/memstat_malloc.c
493
objsize = __offsetof(struct memstat_kmemzone, kz_zone) +
libexec/rtld-elf/rtld.c
2234
smeta.dls_size = __offsetof(struct dl_serinfo, dls_serpath);
libexec/rtld-elf/rtld.c
2236
hmeta.dls_size = __offsetof(struct dl_serinfo, dls_serpath);
libexec/rtld-elf/rtld.c
4500
_info.dls_size = __offsetof(struct dl_serinfo, dls_serpath);
sbin/camcontrol/camcontrol.c
9697
if (valid_len < __offsetof(struct scsi_report_supported_opcodes_one,
sbin/camcontrol/camcontrol.c
9739
if (valid_len < __offsetof(struct scsi_report_supported_opcodes_one,
sbin/camcontrol/persist.c
248
if (length < __offsetof(struct scsi_per_res_cap, type_mask)) {
sbin/camcontrol/persist.c
253
if (length >= __offsetof(struct scsi_per_res_cap, reserved))
sbin/fsck_ffs/dir.c
349
unused = dp->d_reclen - __offsetof(struct direct, d_name);
sys/amd64/include/counter.h
39
#define EARLY_COUNTER (void *)__offsetof(struct pcpu, pc_early_dummy_counter)
sys/amd64/include/pcpu.h
180
__offsetof(struct pcpu, name)
sys/amd64/include/vmm.h
504
_Static_assert(__offsetof(struct vie, disp_bytes) == 22, "ABI");
sys/amd64/include/vmm.h
505
_Static_assert(__offsetof(struct vie, scale) == 24, "ABI");
sys/amd64/include/vmm.h
506
_Static_assert(__offsetof(struct vie, base_register) == 28, "ABI");
sys/arm64/arm64/identcpu.c
2242
.offset = __offsetof(struct cpu_desc, field_name), \
sys/cam/ata/ata_da.c
3206
__offsetof(struct ata_identify_log_pages,entries);
sys/cam/ata/ata_da.c
3289
__offsetof(struct ata_identify_log_sup_cap,
sys/cam/ata/ata_da.c
3395
needed_size = __offsetof(struct ata_zoned_info_log,
sys/cam/scsi/scsi_all.c
5922
__offsetof(struct scsi_transportid_iscsi_device,
sys/cam/scsi/scsi_all.c
5934
__offsetof(struct scsi_transportid_iscsi_port,
sys/cam/scsi/scsi_all.c
8685
cdb->length = sizeof(*cdb) - __offsetof(struct ata_pass_32,
sys/cam/scsi/scsi_all.c
9389
(lhs_end - __offsetof(struct scsi_vpd_id_descriptor, identifier));
sys/cam/scsi/scsi_all.c
9391
(rhs_end - __offsetof(struct scsi_vpd_id_descriptor, identifier));
sys/cam/scsi/scsi_all.h
2265
__offsetof(struct scsi_inquiry_data, additional_length) + 1)
sys/cam/scsi/scsi_all.h
2383
__offsetof(struct scsi_vpd_device_id, desc_list)
sys/cam/scsi/scsi_all.h
2420
__offsetof(struct scsi_vpd_id_descriptor, identifier)
sys/cam/scsi/scsi_da.c
5845
__offsetof(struct ata_identify_log_pages,entries);
sys/cam/scsi/scsi_da.c
5929
needed_size = __offsetof(struct ata_identify_log_sup_cap,
sys/cam/scsi/scsi_da.c
6040
needed_size = __offsetof(struct ata_zoned_info_log,
sys/cam/scsi/scsi_da.c
6134
needed_len = __offsetof(struct scsi_vpd_zoned_bdc,
sys/cam/scsi/scsi_sa.c
353
__offsetof(struct sa_prot_state, prot_method),
sys/cam/scsi/scsi_sa.c
356
__offsetof(struct sa_prot_state, pi_length),
sys/cam/scsi/scsi_sa.c
359
__offsetof(struct sa_prot_state, lbp_w),
sys/cam/scsi/scsi_sa.c
362
__offsetof(struct sa_prot_state, lbp_r),
sys/cam/scsi/scsi_sa.c
365
__offsetof(struct sa_prot_state, rbdp),
sys/cam/scsi/scsi_sa.c
4162
__offsetof(struct scsi_control_data_prot_subpage, prot_bits)
sys/cam/scsi/scsi_sa.c
4229
__offsetof(struct scsi_control_data_prot_subpage, prot_method);
sys/cam/scsi/scsi_sa.c
4264
__offsetof(struct scsi_control_data_prot_subpage,
sys/cam/scsi/scsi_sa.c
5582
length_offset = __offsetof(struct scsi_density_data,
sys/cam/scsi/scsi_sa.c
5585
length_offset = __offsetof(struct scsi_medium_type_data,
sys/cam/scsi/scsi_sa.c
5664
__offsetof(struct scsi_medium_type_data,
sys/cam/scsi/scsi_sa.c
5666
__offsetof(struct scsi_medium_type_data,
sys/cam/scsi/scsi_xpt.c
1588
__offsetof(struct scsi_vpd_extended_inquiry_data,
sys/dev/ath/if_ath_tdma.c
554
__offsetof(struct ieee80211_tdma_param, tdma_tstamp),
sys/dev/cxgbe/t4_mp_ring.c
273
r = malloc(__offsetof(struct mp_ring, items[size]), mt, flags | M_ZERO);
sys/dev/firmware/arm/scmi_shmem.h
52
__offsetof(struct scmi_smt_header, channel_status)
sys/dev/firmware/arm/scmi_shmem.h
56
__offsetof(struct scmi_smt_header, length)
sys/dev/firmware/arm/scmi_shmem.h
60
__offsetof(struct scmi_smt_header, msg_header)
sys/dev/hyperv/netvsc/hn_rndis.c
812
__offsetof(struct ndis_rssprm_toeplitz, rss_ind[0]);
sys/dev/hyperv/netvsc/hn_rndis.c
815
__offsetof(struct ndis_rssprm_toeplitz, rss_key[0]);
sys/dev/hyperv/netvsc/if_hn.c
2886
return (ofs - __offsetof(struct rndis_packet_msg, rm_dataoffset));
sys/dev/hyperv/netvsc/if_hn.c
5046
__offsetof(struct hn_rx_ring, hn_lro.lro_queued),
sys/dev/hyperv/netvsc/if_hn.c
5051
__offsetof(struct hn_rx_ring, hn_lro.lro_flushed),
sys/dev/hyperv/netvsc/if_hn.c
5056
__offsetof(struct hn_rx_ring, hn_lro_tried),
sys/dev/hyperv/netvsc/if_hn.c
5083
__offsetof(struct hn_rx_ring, hn_csum_ip),
sys/dev/hyperv/netvsc/if_hn.c
5087
__offsetof(struct hn_rx_ring, hn_csum_tcp),
sys/dev/hyperv/netvsc/if_hn.c
5091
__offsetof(struct hn_rx_ring, hn_csum_udp),
sys/dev/hyperv/netvsc/if_hn.c
5095
__offsetof(struct hn_rx_ring, hn_csum_trusted),
sys/dev/hyperv/netvsc/if_hn.c
5100
__offsetof(struct hn_rx_ring, hn_small_pkts),
sys/dev/hyperv/netvsc/if_hn.c
5104
__offsetof(struct hn_rx_ring, hn_ack_failed),
sys/dev/hyperv/netvsc/if_hn.c
5471
__offsetof(struct hn_tx_ring, hn_no_txdescs),
sys/dev/hyperv/netvsc/if_hn.c
5475
__offsetof(struct hn_tx_ring, hn_send_failed),
sys/dev/hyperv/netvsc/if_hn.c
5479
__offsetof(struct hn_tx_ring, hn_txdma_failed),
sys/dev/hyperv/netvsc/if_hn.c
5483
__offsetof(struct hn_tx_ring, hn_flush_failed),
sys/dev/hyperv/netvsc/if_hn.c
5488
__offsetof(struct hn_tx_ring, hn_tx_collapsed),
sys/dev/hyperv/netvsc/if_hn.c
5492
__offsetof(struct hn_tx_ring, hn_tx_chimney),
sys/dev/hyperv/netvsc/if_hn.c
5496
__offsetof(struct hn_tx_ring, hn_tx_chimney_tried),
sys/dev/hyperv/netvsc/if_hn.c
5509
__offsetof(struct hn_tx_ring, hn_direct_tx_size),
sys/dev/hyperv/netvsc/if_hn.c
5514
__offsetof(struct hn_tx_ring, hn_sched_tx),
sys/dev/hyperv/netvsc/if_hn.c
7446
__offsetof(struct vmbus_chanpkt_rxbuf, cp_rxbuf[count]))) {
sys/dev/hyperv/netvsc/if_hnreg.h
266
__offsetof(struct rndis_pktinfo, rm_data[dlen])
sys/dev/hyperv/netvsc/ndis.h
122
__offsetof(struct ndis_offload_params, ndis_rsc_ip4)
sys/dev/hyperv/netvsc/ndis.h
172
__offsetof(struct ndis_rss_caps, ndis_pad)
sys/dev/hyperv/netvsc/ndis.h
174
__offsetof(struct ndis_rss_caps, ndis_nind)
sys/dev/hyperv/netvsc/ndis.h
210
__offsetof(struct ndis_rss_params, ndis_cpumaskoffset)
sys/dev/hyperv/netvsc/ndis.h
232
__offsetof(struct ndis_rssprm_toeplitz, rss_ind[nind])
sys/dev/hyperv/netvsc/ndis.h
349
__offsetof(struct ndis_offload, ndis_ipsecv2)
sys/dev/hyperv/netvsc/ndis.h
351
__offsetof(struct ndis_offload, ndis_rsc)
sys/dev/hyperv/utilities/hv_snapshot.c
434
__offsetof(struct hv_vss_opt_msg, reserved));
sys/dev/hyperv/utilities/hv_snapshot.c
488
__offsetof(struct hv_vss_opt_msg, reserved));
sys/dev/hyperv/utilities/hv_snapshot.c
710
memset(reqp, 0, __offsetof(hv_vss_req_internal, callout));
sys/dev/hyperv/utilities/vmbus_ic.c
44
__offsetof(struct vmbus_icmsg_negotiate, ic_ver[VMBUS_IC_VERCNT])
sys/dev/hyperv/utilities/vmbus_ic.c
84
if (dlen < __offsetof(struct vmbus_icmsg_negotiate, ic_ver[cnt])) {
sys/dev/hyperv/utilities/vmbus_icreg.h
108
__offsetof(struct vmbus_icmsg_shutdown, ic_msg[0])
sys/dev/hyperv/utilities/vmbus_icreg.h
96
__offsetof(struct vmbus_icmsg_heartbeat, ic_rsvd[0])
sys/dev/hyperv/vmbus/vmbus.c
269
dsize + __offsetof(struct hypercall_postmsg_in, hc_data[0]));
sys/dev/hyperv/vmbus/vmbus_chan.c
1129
hlen = __offsetof(struct vmbus_chanpkt_sglist, cp_gpa[sglen]);
sys/dev/hyperv/vmbus/vmbus_chan.c
1169
hlen = __offsetof(struct vmbus_chanpkt_prplist,
sys/dev/hyperv/vmbus/vmbus_chan.c
1187
iov[1].iov_len = __offsetof(struct vmbus_gpa_range, gpa_page[prp_cnt]);
sys/dev/hyperv/vmbus/vmbus_chan.c
2251
elem_size = __offsetof(struct vmbus_chanpkt_prplist,
sys/dev/hyperv/vmbus/vmbus_chan.c
587
range_len = __offsetof(struct vmbus_gpa_range, gpa_page[page_count]);
sys/dev/hyperv/vmbus/vmbus_chan.c
616
reqsz = __offsetof(struct vmbus_chanmsg_gpadl_conn,
sys/dev/hyperv/vmbus/vmbus_chan.c
655
reqsz = __offsetof(struct vmbus_chanmsg_gpadl_subconn,
sys/dev/hyperv/vmbus/vmbus_reg.h
323
CTASSERT(__offsetof(struct vmbus_chanmsg_gpadl_conn,
sys/dev/hyperv/vmbus/vmbus_reg.h
336
CTASSERT(__offsetof(struct vmbus_chanmsg_gpadl_subconn,
sys/dev/mana/mana_sysctl.c
215
__offsetof(struct mana_rxq, lro.lro_queued),
sys/dev/mana/mana_sysctl.c
219
__offsetof(struct mana_rxq, lro.lro_flushed),
sys/dev/mana/mana_sysctl.c
223
__offsetof(struct mana_rxq, lro.lro_bad_csum),
sys/dev/mana/mana_sysctl.c
227
__offsetof(struct mana_rxq, lro_tried),
sys/dev/mana/mana_sysctl.c
231
__offsetof(struct mana_rxq, lro_failed),
sys/dev/mana/mana_sysctl.c
236
__offsetof(struct mana_rxq, lro.lro_ackcnt_lim),
sys/dev/mana/mana_sysctl.c
241
__offsetof(struct mana_rxq, lro.lro_length_lim),
sys/dev/mana/mana_sysctl.c
246
__offsetof(struct mana_rxq, lro.lro_cnt),
sys/dev/mana/mana_sysctl.c
252
__offsetof(struct mana_txq, tso_pkts),
sys/dev/mana/mana_sysctl.c
256
__offsetof(struct mana_txq, tso_bytes),
sys/dev/mlx5/device.h
49
#define __mlx5_bit_off(typ, fld) __offsetof(struct mlx5_ifc_##typ##_bits, fld)
sys/dev/mlx5/mlx5_accel/mlx5_ipsec_rxtx.c
55
__offsetof(struct ipsec_accel_in_tag, xh), M_NOWAIT);
sys/dev/mlx5/mlx5_en/en.h
139
sizeof(*(ptr)) - __offsetof(__typeof(*(ptr)), field))
sys/dev/mlx5/mlx5_en/en_rl.h
100
(__offsetof(struct mlx5e_rl_params, n) / sizeof(uint64_t))
sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
885
__offsetof(struct mlx5e_priv, params_ethtool.n)
sys/dev/mlx5/mlx5_ib/mlx5_ib_cong.c
45
(__offsetof(struct mlx5_ib_congestion, field) - \
sys/dev/mlx5/mlx5_ib/mlx5_ib_cong.c
46
__offsetof(struct mlx5_ib_congestion, arg[0])) / sizeof(u64))
sys/dev/usb/controller/xhci.c
1190
addr += __offsetof(struct xhci_hw_root, hwr_events[i]);
sys/dev/usb/controller/xhci.c
1254
addr += __offsetof(struct xhci_hw_root, hwr_commands[i]);
sys/dev/usb/controller/xhci.c
288
addr += __offsetof(struct xhci_hw_root, hwr_commands[0]);
sys/dev/usb/controller/xhci.c
344
addr += __offsetof(struct xhci_dev_ctx_addr, qwSpBufPtr[0]);
sys/dev/usb/controller/xhci.c
375
addr += __offsetof(struct xhci_hw_root, hwr_events[0]);
sys/dev/usb/controller/xhci.c
415
addr += __offsetof(struct xhci_hw_root, hwr_commands[0]);
sys/dev/usb/net/if_urndis.c
879
(uint32_t)__offsetof(struct rndis_packet_msg,
sys/dev/usb/net/if_urndis.c
883
(uint32_t)__offsetof(struct rndis_packet_msg,
sys/dev/usb/net/if_urndis.c
909
__offsetof(struct rndis_packet_msg,
sys/i386/include/pcpu.h
100
__offsetof(struct pcpu, name)
sys/kern/kern_tc.c
265
bintime_off(dst, __offsetof(struct timehands, member)); \
sys/kern/kern_tc.c
287
getthmember(dst, sizeof(*dst), __offsetof(struct timehands, \
sys/kern/kern_umtx.c
141
_Static_assert(__offsetof(struct umutex, m_spare[0]) ==
sys/kern/kern_umtx.c
142
__offsetof(struct umutex32, m_spare[0]), "m_spare32");
sys/kern/sys_generic.c
2271
uloc = (char *)td->td_exterr_ptr + __offsetof(struct uexterror,
sys/kern/sys_generic.c
2279
sz = sizeof(ue) - __offsetof(struct uexterror, error);
sys/kern/vfs_bio.c
222
__offsetof(struct bufdomain, bd_maxbufspace), sysctl_bufdomain_long, "L",
sys/kern/vfs_bio.c
233
__offsetof(struct bufdomain, bd_lobufspace), sysctl_bufdomain_long, "L",
sys/kern/vfs_bio.c
238
__offsetof(struct bufdomain, bd_hibufspace), sysctl_bufdomain_long, "L",
sys/kern/vfs_bio.c
243
__offsetof(struct bufdomain, bd_bufspacethresh), sysctl_bufdomain_long, "L",
sys/kern/vfs_bio.c
278
__offsetof(struct bufdomain, bd_lodirtybuffers), sysctl_bufdomain_int, "I",
sys/kern/vfs_bio.c
283
__offsetof(struct bufdomain, bd_hidirtybuffers), sysctl_bufdomain_int, "I",
sys/kern/vfs_bio.c
288
__offsetof(struct bufdomain, bd_dirtybufthresh), sysctl_bufdomain_int, "I",
sys/kern/vfs_bio.c
296
__offsetof(struct bufdomain, bd_lofreebuffers), sysctl_bufdomain_int, "I",
sys/kern/vfs_bio.c
301
__offsetof(struct bufdomain, bd_hifreebuffers), sysctl_bufdomain_int, "I",
sys/net/if.c
154
CTASSERT(__offsetof(struct ifreq, ifr_ifru) ==
sys/net/if.c
155
__offsetof(struct ifreq32, ifr_ifru));
sys/net/mp_ring.c
260
r = malloc(__offsetof(struct ifmp_ring, items[size]), mt, flags | M_ZERO);
sys/net/rndis.h
131
__offsetof(struct rndis_packet_msg, rm_dataoffset))
sys/net/rndis.h
135
((ofs) + __offsetof(struct rndis_packet_msg, rm_dataoffset))
sys/net/rndis.h
151
__offsetof(struct rndis_pktinfo, rm_data[0])
sys/net/rndis.h
218
__offsetof(struct rndis_init_comp, rm_aflistsz)
sys/net/rndis.h
245
__offsetof(struct rndis_query_req, rm_rid))
sys/net/rndis.h
258
((ofs) + __offsetof(struct rndis_query_req, rm_rid))
sys/net/rndis.h
276
__offsetof(struct rndis_set_req, rm_rid))
sys/net/rndis.h
330
((ofs) + __offsetof(struct rndis_status_msg, rm_status))
sys/net/route/nhop.h
121
#define NHOP_END_CMP (__offsetof(struct nhop_object, nh_pksent))
sys/net/route/nhop_ctl.c
94
_Static_assert(__offsetof(struct nhop_object, nh_ifp) == 32,
sys/net/route/nhop_var.h
96
#define NH_PRIV_END_CMP (__offsetof(struct nhop_priv, nh_idx))
sys/net/route/route_var.h
114
_Static_assert(__offsetof(struct route, ro_dst) == __offsetof(_ro_new, _dst_new),\
sys/net/route/route_var.h
97
_Static_assert(__offsetof(_s1, _f1) == __offsetof(_s2, _f2), \
sys/net80211/ieee80211_ht.c
1688
__offsetof(struct ieee80211_ie_htcap, hc_cap));
sys/net80211/ieee80211_ht.c
1689
ni->ni_htparam = ie[__offsetof(struct ieee80211_ie_htcap, hc_param)];
sys/net80211/ieee80211_ht.c
3426
__offsetof(struct ieee80211_ie_htcap, hc_mcsset));
sys/net80211/ieee80211_ht.c
3437
frm += __offsetof(struct ieee80211_ie_htcap, hc_extcap) -
sys/net80211/ieee80211_ht.c
3438
__offsetof(struct ieee80211_ie_htcap, hc_mcsset);
sys/net80211/ieee80211_ht.c
3446
__offsetof(struct ieee80211_ie_htcap, hc_txbf);
sys/net80211/ieee80211_ht.c
3515
__offsetof(struct ieee80211_ie_htcap, hc_mcsset));
sys/net80211/ieee80211_ht.c
3526
frm += __offsetof(struct ieee80211_ie_htcap, hc_extcap) -
sys/net80211/ieee80211_ht.c
3527
__offsetof(struct ieee80211_ie_htcap, hc_mcsset);
sys/net80211/ieee80211_ht.c
3535
__offsetof(struct ieee80211_ie_htcap, hc_txbf);
sys/net80211/ieee80211_ht.c
3678
__offsetof(struct ieee80211_ie_htinfo, hi_basicmcsset);
sys/net80211/ieee80211_ioctl.c
145
space = __offsetof(struct ieee80211req_chaninfo,
sys/net80211/ieee80211_ioctl.c
214
const size_t off = __offsetof(struct ieee80211req_sta_stats, is_stats);
sys/net80211/ieee80211_ioctl.c
504
const size_t off = __offsetof(struct ieee80211req_sta_req, info);
sys/net80211/ieee80211_output.c
2249
frm += __offsetof(struct ieee80211_wme_info, wme_info);
sys/net80211/ieee80211_sta.c
1183
*qosinfo = frm[__offsetof(struct ieee80211_wme_param, param_qosInfo)];
sys/net80211/ieee80211_sta.c
1189
frm += __offsetof(struct ieee80211_wme_param, params_acParams);
sys/net80211/ieee80211_tdma.c
698
frm += __offsetof(struct ieee80211_tdma_param, tdma_slot);
sys/netinet/in_pcb.c
260
bytes = __offsetof(struct inpcblbgroup, il_inp[size]);
sys/netinet/ip_mroute.h
265
#define MROUTE_VIF_SYSCTL_LEN __offsetof(struct vif, v_mtx)
sys/sys/cdefs.h
354
(__offsetof(type, end) - __offsetof(type, start))
sys/sys/cdefs.h
364
__DEQUALIFY(s *, (const volatile char *)__x - __offsetof(s, m));\
sys/sys/dirent.h
120
((__offsetof(struct dirent, d_name) + (namlen) + 1 + 7) & ~7)
sys/sys/dirent.h
140
dp->d_reclen - (__offsetof(struct dirent, d_name) + dp->d_namlen));
sys/sys/pctrie.h
107
CTASSERT((__offsetof(struct type, field) & (sizeof(uint32_t) - 1)) == 0); \
sys/sys/pctrie.h
113
((uintptr_t)val - __offsetof(struct type, field)); \
sys/sys/pctrie.h
280
callback, __offsetof(struct type, field), arg); \
sys/sys/pctrie.h
283
callback, __offsetof(struct type, field), arg)) \
sys/sys/vnode.h
543
#define VOPARG_OFFSETOF(s_type, field) __offsetof(s_type, field)
sys/ufs/ufs/dir.h
112
(roundup2(__offsetof(struct direct, d_name) + (namlen) + 1, DIR_ROUNDUP))
sys/vm/uma_int.h
384
_Static_assert(sizeof(struct uma_slab) == __offsetof(struct uma_slab, us_free),
sys/x86/x86/cpu_machdep.c
1300
_Static_assert(__offsetof(struct pcpu, pc_mds_tmp) % 64 == 0, "MDS AVX512");
tests/sys/kern/sysctl_kern_proc.c
155
ATF_REQUIRE(sz >= __offsetof(struct kinfo_file, kf_structsize) +
tools/build/cross-build/include/common/sys/cdefs.h
220
#ifndef __offsetof
tools/build/cross-build/include/common/sys/cdefs.h
225
(__offsetof(type, end) - __offsetof(type, start))
tools/build/cross-build/include/common/sys/cdefs.h
232
s *, (const volatile char *)__x - __offsetof(s, m)); \
usr.bin/ruptime/ruptime.c
52
#define WHDRSIZE __offsetof(struct whod, wd_we)
usr.sbin/acpi/acpidump/acpi.c
533
if (mp->Length > __offsetof(ACPI_MADT_LOCAL_SAPIC, Uid))
usr.sbin/dconschat/dconschat.c
444
dc->paddr + __offsetof(struct dcons_buf, magic));
usr.sbin/dconschat/dconschat.c
594
dc->paddr + __offsetof(struct dcons_buf, iptr[port]));
usr.sbin/makefs/zfs/vdev.c
189
loff + __offsetof(vdev_label_t, vl_be), sizeof(label->vl_be));
usr.sbin/makefs/zfs/vdev.c
195
loff + __offsetof(vdev_label_t, vl_vdev_phys),
usr.sbin/makefs/zfs/vdev.c
208
loff + __offsetof(vdev_label_t, vl_uberblock) + roff,