/xnu-2782.1.97/bsd/sys/_types/ |
H A D | _offsetof.h | 28 #ifndef offsetof 29 #define offsetof(type, field) __offsetof(type, field) macro 30 #endif /* offsetof */
|
/xnu-2782.1.97/osfmk/i386/ |
H A D | genassym.c | 87 #undef offsetof macro 127 DECLARE("SLOCK_ILK", offsetof(usimple_lock_data_t, interlock)); 129 DECLARE("SLOCK_TYPE", offsetof(usimple_lock_data_t, lock_type)); 130 DECLARE("SLOCK_PC", offsetof(usimple_lock_data_t, debug.lock_pc)); 131 DECLARE("SLOCK_THREAD", offsetof(usimple_lock_data_t, debug.lock_thread)); 132 DECLARE("SLOCK_DURATIONH",offsetof(usimple_lock_data_t, debug.duration[0])); 133 DECLARE("SLOCK_DURATIONL",offsetof(usimple_lock_data_t, debug.duration[1])); 138 DECLARE("MUTEX_OWNER", offsetof(lck_mtx_t, lck_mtx_owner)); 139 DECLARE("MUTEX_PTR", offsetof(lck_mtx_t, lck_mtx_ptr)); 140 DECLARE("MUTEX_STATE", offsetof(lck_mtx_ [all...] |
H A D | cpu_data.h | 257 #ifndef offsetof 258 #define offsetof(TYPE,MEMBER) __builtin_offsetof(TYPE,MEMBER) macro 290 #ifndef offsetof 291 #define offsetof(TYPE,MEMBER) ((size_t) &((TYPE *)0)->MEMBER) macro 292 #endif /* offsetof */ 297 : "i" (offsetof(cpu_data_t,member))); \ 304 : "r" (offsetof(cpu_data_t,member[index]))); \ 310 : "r" (value), "i" (offsetof(cpu_data_t,member))); 316 : "i" (offsetof(cpu_data_t,member)), "0" (value)); \ 367 : "i" (offsetof(cpu_data_ [all...] |
/xnu-2782.1.97/bsd/netinet6/ |
H A D | in6_proto.c | 340 .dom_rtoffset = offsetof(struct sockaddr_in6, sin6_addr) << 3, 358 _CASSERT(offsetof(struct ip6protosw, pr_entry) == 359 offsetof(struct protosw, pr_entry)); 360 _CASSERT(offsetof(struct ip6protosw, pr_domain) == 361 offsetof(struct protosw, pr_domain)); 362 _CASSERT(offsetof(struct ip6protosw, pr_protosw) == 363 offsetof(struct protosw, pr_protosw)); 364 _CASSERT(offsetof(struct ip6protosw, pr_type) == 365 offsetof(struct protosw, pr_type)); 366 _CASSERT(offsetof(struc [all...] |
H A D | frag6.c | 340 offsetof(struct ip6_hdr, ip6_plen)); 480 offsetof(struct ip6_frag, ip6f_offlg)); 489 offsetof(struct ip6_frag, ip6f_offlg)); 524 offsetof(struct ip6_frag, ip6f_offlg));
|
/xnu-2782.1.97/bsd/dev/i386/ |
H A D | sysctl.c | 311 (void *)offsetof(i386_cpu_info_t, cpuid_max_basic),sizeof(uint32_t), 315 (void *)offsetof(i386_cpu_info_t, cpuid_max_ext), sizeof(uint32_t), 319 (void *)offsetof(i386_cpu_info_t, cpuid_vendor), 0, 323 (void *)offsetof(i386_cpu_info_t, cpuid_brand_string), 0, 327 (void *)offsetof(i386_cpu_info_t, cpuid_family), sizeof(uint8_t), 331 (void *)offsetof(i386_cpu_info_t, cpuid_model), sizeof(uint8_t), 335 (void *)offsetof(i386_cpu_info_t, cpuid_extmodel), sizeof(uint8_t), 339 (void *)offsetof(i386_cpu_info_t, cpuid_extfamily), sizeof(uint8_t), 343 (void *)offsetof(i386_cpu_info_t, cpuid_stepping), sizeof(uint8_t), 347 (void *)offsetof(i386_cpu_info_ [all...] |
/xnu-2782.1.97/EXTERNAL_HEADERS/ |
H A D | stddef.h | 52 #define offsetof(t, d) __builtin_offsetof(t, d) macro
|
/xnu-2782.1.97/bsd/net/ |
H A D | if_pflog.h | 96 #define PFLOG_REAL_HDRLEN offsetof(struct pfloghdr, pad)
|
H A D | net_str_id.c | 175 iffmid_size = ROUNDUP32(offsetof(struct net_str_id_entry, nsi_string) + str_size);
|
H A D | route.c | 410 _CASSERT(offsetof(struct route, ro_rt) == 411 offsetof(struct route_in6, ro_rt)); 412 _CASSERT(offsetof(struct route, ro_srcia) == 413 offsetof(struct route_in6, ro_srcia)); 414 _CASSERT(offsetof(struct route, ro_flags) == 415 offsetof(struct route_in6, ro_flags)); 416 _CASSERT(offsetof(struct route, ro_dst) == 417 offsetof(struct route_in6, ro_dst)); 636 offsetof(struct sockaddr_inifscope, sin_scope_id) + 641 offsetof(struc [all...] |
H A D | ether_inet6_pr_module.c | 191 offsetof(struct sockaddr_dl, sdl_data[0]) + ETHER_ADDR_LEN;
|
H A D | if_bond.c | 942 bcopy(eh_p, vlh_p, offsetof(struct ether_header, ether_type)); 1351 #define IP_SRC_OFFSET (offsetof(struct ip, ip_src) - offsetof(struct ip, ip_p)) 1352 #define IP_DST_OFFSET (offsetof(struct ip, ip_dst) - offsetof(struct ip, ip_p)) 1365 offset = offsetof(struct ip, ip_p) + sizeof(struct ether_header); 1408 offset = offsetof(struct ip6_hdr, ip6_src) + sizeof(struct ether_header); 1645 if (m->m_pkthdr.len < (int)offsetof(lacpdu, la_reserved)) { 1650 if (m->m_len < (int)offsetof(lacpdu, la_reserved)) { 1651 m = m_pullup(m, offsetof(lacpd [all...] |
H A D | ntstat.c | 2047 allocsize = offsetof(nstat_msg_sysinfo_counts, counts); 2048 countsize = offsetof(nstat_sysinfo_counts, nstat_sysinfo_keyvals); 2494 u_int32_t size = offsetof(nstat_msg_src_description, data) + src->provider->nstat_descriptor_length; 2557 if (mbuf_len(m) < offsetof(nstat_msg_add_src_req, param)) 2563 int32_t paramlength = mbuf_pkthdr_len(m) - offsetof(nstat_msg_add_src_req, param); 2578 result = mbuf_copydata(m, offsetof(nstat_msg_add_src_req, param), paramlength, data); 2725 if (mbuf_copydata(m, offsetof(nstat_msg_rem_src_req, srcref), sizeof(srcref), &srcref) != 0)
|
H A D | ether_if_module.c | 135 ((size_t) offsetof(struct ether_desc_blk_str, block_ptr))
|
H A D | ether_inet_pr_module.c | 285 offsetof(struct sockaddr_dl, sdl_data[0]) + ETHER_ADDR_LEN;
|
/xnu-2782.1.97/bsd/sys/ |
H A D | kern_event.h | 142 #define KEV_MSG_HEADER_SIZE (offsetof(struct kern_event_msg, event_data[0]))
|
H A D | fasttrap_impl.h | 139 ((fasttrap_id_tp_t *)(((char *)(id) - offsetof(fasttrap_id_tp_t, fit_id))) - \
|
/xnu-2782.1.97/security/ |
H A D | mac_internal.h | 378 mac_internalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_internalize), label, instring) 381 mac_externalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_externalize), label, elementlist, outbuf, outbuflen) 384 mac_externalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_externalize_audit), label, "*", outbuf, outbuflen)
|
/xnu-2782.1.97/osfmk/ipc/ |
H A D | mach_msg.c | 113 #ifndef offsetof 114 #define offsetof(type, member) ((size_t)(&((type *)0)->member)) macro 115 #endif /* offsetof */ 308 msg_addr + offsetof(mach_msg_user_header_t, msgh_local_port), 313 msg_addr + offsetof(mach_msg_user_header_t, msgh_size),
|
/xnu-2782.1.97/bsd/netinet/ |
H A D | mptcp_opt.c | 610 *finp = opt + optlen + offsetof(struct mptcp_dss_copt, \ 684 offsetof(struct mptcp_dss64_ack32_opt, mdss_data_len)); 690 offsetof(struct mptcp_dss64_ack32_opt, 742 offsetof(struct mptcp_dsn_opt, mdss_data_len)); 746 offsetof(struct mptcp_dsn_opt, mdss_subflow_seqn)); 866 offsetof(struct mptcp_dss_ack_opt, mdss_data_len)); 870 offsetof(struct mptcp_dss_ack_opt, 925 offsetof(struct mptcp_dss32_ack64_opt, mdss_data_len)); 929 offsetof(struct mptcp_dss32_ack64_opt, 983 offsetof(struc [all...] |
/xnu-2782.1.97/osfmk/kern/ |
H A D | kern_stackshot.c | 376 || !kdp_copyin(task->map->pmap, shared_cache_base_address + offsetof(struct _dyld_cache_header, uuid), task_snap->shared_cache_identifier, sizeof(task_snap->shared_cache_identifier))) { 411 memset(&task_snap->disk_reads_count, 0, offsetof(struct task_snapshot, metadata_size) - offsetof(struct task_snapshot, disk_reads_count)); 535 offsetof(struct thread_snapshot, metadata_size) - offsetof(struct thread_snapshot, disk_reads_count));
|
/xnu-2782.1.97/bsd/vfs/ |
H A D | vfs_journal.h | 129 // offsetof macro to calculate the size. 131 #define JOURNAL_HEADER_CKSUM_SIZE (offsetof(struct journal_header, sequence_num))
|
/xnu-2782.1.97/bsd/dev/dtrace/ |
H A D | fasttrap.c | 1227 size_t size = offsetof(fasttrap_probe_t, ftp_tps[probe->ftp_ntps]); 1797 bzero(pp, offsetof(fasttrap_probe_t, ftp_tps[pdata->ftps_noffs])); 1799 pp = kmem_zalloc(offsetof(fasttrap_probe_t, ftp_tps[pdata->ftps_noffs]), KM_SLEEP); 2028 bzero(pp, offsetof(fasttrap_probe_t, ftp_tps[ntps])); 2030 pp = kmem_zalloc(offsetof(fasttrap_probe_t, ftp_tps[ntps]), KM_SLEEP); 2524 size_t zone_element_size = offsetof(fasttrap_probe_t, ftp_tps[i]);
|
/xnu-2782.1.97/bsd/kern/ |
H A D | pthread_shims.c | 56 char pthread_functions_size_compile_assert[(sizeof(struct pthread_functions_s) - offsetof(struct pthread_functions_s, psynch_rw_yieldwrlock) - sizeof(void*)) == (sizeof(void*) * 100) ? 1 : -1]; 57 char pthread_callbacks_size_compile_assert[(sizeof(struct pthread_callbacks_s) - offsetof(struct pthread_callbacks_s, PTHREAD_CALLBACK_MEMBER) - sizeof(void*)) == (sizeof(void*) * 100) ? 1 : -1];
|
H A D | kern_newsysctl.c | 167 memcpy(oidp, new_oidp, offsetof(struct sysctl_oid, oid_descr)); 252 if (!memcmp(&oidp->oid_number, &old_oidp->oid_number, (offsetof(struct sysctl_oid, oid_descr)-offsetof(struct sysctl_oid, oid_number)))) {
|