Symbol: __offsetof
include/stddef.h
61
#define offsetof(type, member) __offsetof(type, member)
libexec/rtld-elf/rtld.c
1747
smeta.dls_size = __offsetof(struct dl_serinfo, dls_serpath);
libexec/rtld-elf/rtld.c
1749
hmeta.dls_size = __offsetof(struct dl_serinfo, dls_serpath);
libexec/rtld-elf/rtld.c
3557
_info.dls_size = __offsetof(struct dl_serinfo, dls_serpath);
sbin/ipfw/ipfw2.c
3671
len1 = __offsetof(struct ipfw_ioc_tbllist, tables[table_max]);
sbin/ipfw/ipfw2.c
3837
len = __offsetof(struct ipfw_ioc_tblcont, ent[count]);
sys/bus/u4b/net/if_urndis.c
847
(uint32_t)__offsetof(struct urndis_packet_msg,
sys/bus/u4b/net/if_urndis.c
851
(uint32_t)__offsetof(struct urndis_packet_msg,
sys/bus/u4b/net/if_urndis.c
876
__offsetof(struct urndis_packet_msg,
sys/dev/netif/ath/ath/if_ath_tdma.c
555
__offsetof(struct ieee80211_tdma_param, tdma_tstamp),
sys/dev/raid/hptmv/array.h
151
#define ArrayDescript_3_0_size __offsetof(struct _ArrayDescript, bCheckSum31)
sys/dev/raid/hptmv/vdevice.h
80
#define ARRAY_VDEV_SIZE (__offsetof(VDevice, u) + sizeof(RaidArray))
sys/dev/raid/hptmv/vdevice.h
81
#define DISK_VDEV_SIZE (__offsetof(VDevice, u) + sizeof(Device))
sys/dev/raid/hptmv/vdevice.h
83
#define Map2pVDevice(pDev) ((PVDevice)((UINT_PTR)pDev - __offsetof(VDevice, u.disk)))
sys/kern/kern_device.c
62
__offsetof(struct dev_ops, __CONCAT(d_, name)), \
sys/kern/kern_objcache.c
171
size = __offsetof(struct magazine, objects[capacity]);
sys/kern/kern_objcache.c
187
__offsetof(struct magazine, objects[mag_capacity]));
sys/kern/kern_objcache.c
234
oc = kmalloc(__offsetof(struct objcache, cache_percpu[ncpus]),
sys/kern/kern_objcache.c
61
#define MAGAZINE_HDRSIZE __offsetof(struct magazine, objects[0])
sys/kern/vfs_init.c
185
for (off = __offsetof(struct vop_ops, vop_ops_first_field);
sys/kern/vfs_init.c
186
off <= __offsetof(struct vop_ops, vop_ops_last_field);
sys/kern/vfs_vopops.c
88
__offsetof(struct vop_ops, __CONCAT(vop_, name)), \
sys/net/dummynet/ip_dummynet.c
1501
x->idle_heap.offset = __offsetof(struct dn_flow_queue, heap_pos);
sys/net/dummynet3/ip_dummynet3.c
1504
x->idle_heap.offset = __offsetof(struct dn_flow_queue, heap_pos);
sys/net/if.c
3806
arr = kmalloc(__offsetof(struct ifnet_array, ifnet_arr[count]),
sys/net/if.c
3962
rm = kmalloc(__offsetof(struct if_ringmap, rm_cpumap[ring_cnt]),
sys/net/ipfw/ip_fw2.c
6100
sz = __offsetof(struct ipfw_ioc_tbllist, tables[cnt]);
sys/net/ipfw/ip_fw2.c
6128
sz = __offsetof(struct ipfw_ioc_tblcont, ent[cnt]);
sys/net/ipfw/ip_fw2.c
7222
ctx = kmalloc(__offsetof(struct ipfw_context,
sys/net/ipfw/ip_fw2.c
814
__offsetof(struct ipfw_context, ipfw_sts_reap), ipfw_sysctl_stat,
sys/net/ipfw/ip_fw2.c
818
__offsetof(struct ipfw_context, ipfw_sts_reapfailed), ipfw_sysctl_stat,
sys/net/ipfw/ip_fw2.c
822
__offsetof(struct ipfw_context, ipfw_sts_overflow), ipfw_sysctl_stat,
sys/net/ipfw/ip_fw2.c
826
__offsetof(struct ipfw_context, ipfw_sts_nomem), ipfw_sysctl_stat,
sys/net/ipfw/ip_fw2.c
830
__offsetof(struct ipfw_context, ipfw_sts_tcprecycled), ipfw_sysctl_stat,
sys/net/ipfw/ip_fw2.c
835
__offsetof(struct ipfw_context, ipfw_tks_nomem), ipfw_sysctl_stat,
sys/net/ipfw/ip_fw2.c
839
__offsetof(struct ipfw_context, ipfw_tks_reap), ipfw_sysctl_stat,
sys/net/ipfw/ip_fw2.c
843
__offsetof(struct ipfw_context, ipfw_tks_reapfailed), ipfw_sysctl_stat,
sys/net/ipfw/ip_fw2.c
847
__offsetof(struct ipfw_context, ipfw_tks_overflow), ipfw_sysctl_stat,
sys/net/ipfw/ip_fw2.c
851
__offsetof(struct ipfw_context, ipfw_tks_cntnomem), ipfw_sysctl_stat,
sys/net/ipfw/ip_fw2.c
855
__offsetof(struct ipfw_context, ipfw_frags), ipfw_sysctl_stat,
sys/net/ipfw/ip_fw2.c
859
__offsetof(struct ipfw_context, ipfw_defraged), ipfw_sysctl_stat,
sys/net/ipfw/ip_fw2.c
863
__offsetof(struct ipfw_context, ipfw_defrag_remote), ipfw_sysctl_stat,
sys/net/ipfw/ip_fw2.c
867
__offsetof(struct ipfw_context, ipfw_xlated), ipfw_sysctl_stat,
sys/net/ipfw/ip_fw2.c
871
__offsetof(struct ipfw_context, ipfw_xlate_split), ipfw_sysctl_stat,
sys/net/ipfw/ip_fw2.c
875
__offsetof(struct ipfw_context, ipfw_xlate_conflicts), ipfw_sysctl_stat,
sys/net/ipfw/ip_fw2.c
879
__offsetof(struct ipfw_context, ipfw_xlate_cresolved), ipfw_sysctl_stat,
sys/netgraph/bpf/ng_bpf.c
113
(buf - __offsetof(struct ng_bpf_hookprog, bpf_prog));
sys/netgraph7/bpf/ng_bpf.c
127
(buf - __offsetof(struct ng_bpf_hookprog, bpf_prog));
sys/netgraph7/netgraph/ng_parse.c
86
#define INT16_ALIGNMENT __offsetof(struct int16_temp, y)
sys/netgraph7/netgraph/ng_parse.c
87
#define INT32_ALIGNMENT __offsetof(struct int32_temp, y)
sys/netgraph7/netgraph/ng_parse.c
88
#define INT64_ALIGNMENT __offsetof(struct int64_temp, y)
sys/netinet/in_pcb.c
2027
grp = kmalloc(__offsetof(struct inp_localgroup, il_inp[size]),
sys/netproto/802_11/wlan/ieee80211_ht.c
1433
__offsetof(struct ieee80211_ie_htcap, hc_cap));
sys/netproto/802_11/wlan/ieee80211_ht.c
1434
ni->ni_htparam = ie[__offsetof(struct ieee80211_ie_htcap, hc_param)];
sys/netproto/802_11/wlan/ieee80211_ht.c
2815
__offsetof(struct ieee80211_ie_htcap, hc_mcsset));
sys/netproto/802_11/wlan/ieee80211_ht.c
2826
frm += __offsetof(struct ieee80211_ie_htcap, hc_extcap) -
sys/netproto/802_11/wlan/ieee80211_ht.c
2827
__offsetof(struct ieee80211_ie_htcap, hc_mcsset);
sys/netproto/802_11/wlan/ieee80211_ht.c
2835
__offsetof(struct ieee80211_ie_htcap, hc_txbf);
sys/netproto/802_11/wlan/ieee80211_ht.c
2967
__offsetof(struct ieee80211_ie_htinfo, hi_basicmcsset);
sys/netproto/802_11/wlan/ieee80211_ioctl.c
144
space = __offsetof(struct ieee80211req_chaninfo,
sys/netproto/802_11/wlan/ieee80211_ioctl.c
217
const size_t off = __offsetof(struct ieee80211req_sta_stats, is_stats);
sys/netproto/802_11/wlan/ieee80211_ioctl.c
523
const size_t off = __offsetof(struct ieee80211req_sta_req, info);
sys/netproto/802_11/wlan/ieee80211_output.c
2025
frm += __offsetof(struct ieee80211_wme_info, wme_info);
sys/netproto/802_11/wlan/ieee80211_sta.c
1113
qosinfo = frm[__offsetof(struct ieee80211_wme_param, param_qosInfo)];
sys/netproto/802_11/wlan/ieee80211_sta.c
1118
frm += __offsetof(struct ieee80211_wme_param, params_acParams);
sys/netproto/802_11/wlan/ieee80211_tdma.c
698
frm += __offsetof(struct ieee80211_tdma_param, tdma_slot);
sys/platform/pc64/apic/apicreg.h
477
(__offsetof(struct LAPIC, field) >> 4); \
sys/platform/pc64/x86_64/machdep.c
762
KKASSERT(__offsetof(struct trapframe, tf_rdi) == 0);
sys/platform/vkernel64/x86_64/cpu_regs.c
174
KKASSERT(__offsetof(struct trapframe, tf_rdi) == 0);
sys/sys/cdefs.h
385
__DEQUALIFY(s *, (const volatile char *)__x - __offsetof(s, m)); \
sys/sys/cdefs.h
389
__DEQUALIFY(s *, (const volatile char *)(x) - __offsetof(s, m))
sys/sys/cdefs.h
557
#define __alignof(x) __offsetof(struct { char __a; x __b; }, __b)
sys/sys/dirent.h
113
(__offsetof(struct dirent, d_name) + (dp)->d_namlen + 1)
sys/sys/dirent.h
115
((__offsetof(struct dirent, d_name) + (namelen) + 1 + 7) & ~7)
sys/sys/gpt.h
61
#define GPT_MIN_HDR_SIZE __offsetof(struct gpt_hdr, padding)
sys/sys/stdint.h
61
#define offsetof(type, field) __offsetof(type, field)
sys/vfs/ufs/dir.h
114
((__offsetof(struct direct, d_name) + \
tools/tools/netrate/kq_sendrecv/kq_recvserv/kq_recvserv.c
138
info_sz = __offsetof(struct recv_info, dport[nthr]);
usr.sbin/dconschat/dconschat.c
330
dc->paddr + __offsetof(struct dcons_buf, magic));
usr.sbin/dconschat/dconschat.c
477
dc->paddr + __offsetof(struct dcons_buf, iptr[port]));