Home
last modified time | relevance | path

Searched refs:offsetof (Results 1 – 25 of 159) sorted by relevance

1234567

/xnu-10063.141.1/osfmk/arm64/
H A Dgenassym.c126 DECLARE("TH_TXM_THREAD_STACK", offsetof(struct thread, txm_thread_stack)); in main()
128 DECLARE("TH_EXCLAVES_INTSTATE", offsetof(struct thread, th_exclaves_intstate)); in main()
132 DECLARE("TH_RECOVER", offsetof(struct thread, recover)); in main()
133 DECLARE("TH_KSTACKPTR", offsetof(struct thread, machine.kstackptr)); in main()
137 DECLARE("TH_THREAD_ID", offsetof(struct thread, thread_id)); in main()
139 DECLARE("TH_ROP_PID", offsetof(struct thread, machine.rop_pid)); in main()
140 DECLARE("TH_JOP_PID", offsetof(struct thread, machine.jop_pid)); in main()
143 DECLARE("TH_EXPECTED_FAULT_HANDLER", offsetof(struct thread, machine.expected_fault_handler)); in main()
146 DECLARE("TH_ARM_MACHINE_FLAGS", offsetof(struct thread, machine.arm_machine_flags)); in main()
149 DECLARE("TH_UPCB", offsetof(struct thread, machine.upcb)); in main()
[all …]
H A Dlowmem_vectors.c71 .lgPmapMemPageOffset = offsetof(struct vm_page_with_ppnum, vmp_phys_page),
72 .lgPmapMemChainOffset = offsetof(struct vm_page, vmp_listq),
/xnu-10063.141.1/osfmk/i386/
H A Dgenassym.c123 DECLARE("SLOCK_ILK", offsetof(usimple_lock_data_t, interlock)); in main()
129 DECLARE("TH_RECOVER", offsetof(struct thread, recover)); in main()
130 DECLARE("TH_CONTINUATION", offsetof(struct thread, continuation)); in main()
131 DECLARE("TH_KERNEL_STACK", offsetof(struct thread, kernel_stack)); in main()
132 DECLARE("TH_IOTIER_OVERRIDE", offsetof(struct thread, iotier_override)); in main()
134 DECLARE("TH_SYSCALLS_MACH", offsetof(struct thread, syscalls_mach)); in main()
135 DECLARE("TH_SYSCALLS_UNIX", offsetof(struct thread, syscalls_unix)); in main()
137 DECLARE("TH_CTH_SELF", offsetof(struct thread, machine.cthread_self)); in main()
139 DECLARE("TASK_VTIMERS", offsetof(struct task, vtimers)); in main()
142 DECLARE("TH_TASK", offsetof(struct thread, t_task)); in main()
[all …]
/xnu-10063.141.1/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c116 _CASSERT((offsetof(struct __flow, flow_l3) % 16) == 0); in flow_pkt_classify()
117 _CASSERT((offsetof(struct __flow, flow_ipv4_src) % 16) == 0); in flow_pkt_classify()
118 _CASSERT((offsetof(struct __flow, flow_ipv6_src) % 16) == 0); in flow_pkt_classify()
119 _CASSERT((offsetof(struct __flow, flow_l4) % 16) == 0); in flow_pkt_classify()
120 _CASSERT((offsetof(struct __flow, flow_tcp_src) % 16) == 0); in flow_pkt_classify()
121 _CASSERT((offsetof(struct __flow, flow_udp_src) % 16) == 0); in flow_pkt_classify()
122 _CASSERT((offsetof(struct __flow, flow_esp_spi) % 16) == 0); in flow_pkt_classify()
125 _CASSERT((offsetof(struct __flow_l3_ipv4_addrs, _dst) - in flow_pkt_classify()
126 offsetof(struct __flow_l3_ipv4_addrs, _src)) == in flow_pkt_classify()
127 (offsetof(struct ip, ip_dst) - offsetof(struct ip, ip_src))); in flow_pkt_classify()
[all …]
H A Dflow_stats.c76 _CASSERT((offsetof(struct flow_stats, fs_stats) % 16) == 0); in flow_stats_alloc()
77 _CASSERT((offsetof(struct sk_stats_flow, sf_key) % 16) == 0); in flow_stats_alloc()
/xnu-10063.141.1/tests/intrusive_shared_ptr_src/
H A Dabi.size_alignment.cpp23 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
39 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
57 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
77 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
97 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
117 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
137 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
/xnu-10063.141.1/bsd/netinet6/
H A Din6_proto.c340 .dom_rtoffset = offsetof(struct sockaddr_in6, sin6_addr) << 3,
358 _CASSERT(offsetof(struct ip6protosw, pr_entry) == in in6_dinit()
359 offsetof(struct protosw, pr_entry)); in in6_dinit()
360 _CASSERT(offsetof(struct ip6protosw, pr_domain) == in in6_dinit()
361 offsetof(struct protosw, pr_domain)); in in6_dinit()
362 _CASSERT(offsetof(struct ip6protosw, pr_protosw) == in in6_dinit()
363 offsetof(struct protosw, pr_protosw)); in in6_dinit()
364 _CASSERT(offsetof(struct ip6protosw, pr_type) == in in6_dinit()
365 offsetof(struct protosw, pr_type)); in in6_dinit()
366 _CASSERT(offsetof(struct ip6protosw, pr_protocol) == in in6_dinit()
[all …]
/xnu-10063.141.1/bsd/dev/i386/
H A Dsysctl.c388 (void *)offsetof(i386_cpu_info_t, cpuid_max_basic), sizeof(uint32_t),
392 (void *)offsetof(i386_cpu_info_t, cpuid_max_ext), sizeof(uint32_t),
396 (void *)offsetof(i386_cpu_info_t, cpuid_vendor), 0,
400 (void *)offsetof(i386_cpu_info_t, cpuid_brand_string), 0,
404 (void *)offsetof(i386_cpu_info_t, cpuid_family), sizeof(uint8_t),
408 (void *)offsetof(i386_cpu_info_t, cpuid_model), sizeof(uint8_t),
412 (void *)offsetof(i386_cpu_info_t, cpuid_extmodel), sizeof(uint8_t),
416 (void *)offsetof(i386_cpu_info_t, cpuid_extfamily), sizeof(uint8_t),
420 (void *)offsetof(i386_cpu_info_t, cpuid_stepping), sizeof(uint8_t),
424 (void *)offsetof(i386_cpu_info_t, cpuid_features), sizeof(uint64_t),
[all …]
/xnu-10063.141.1/bsd/dev/dtrace/
H A Dlockprof.c70 {"spin-held-", 0, offsetof(lck_grp_t, lck_grp_spincnt), offsetof(lck_grp_stats_t, lgss_spin_held)},
71 {"spin-miss-", 0, offsetof(lck_grp_t, lck_grp_spincnt), offsetof(lck_grp_stats_t, lgss_spin_miss)},
72 …{"spin-spin-", TIME_EVENT, offsetof(lck_grp_t, lck_grp_spincnt), offsetof(lck_grp_stats_t, lgss_sp…
73 …{"ticket-held-", 0, offsetof(lck_grp_t, lck_grp_ticketcnt), offsetof(lck_grp_stats_t, lgss_ticket_…
74 …{"ticket-miss-", 0, offsetof(lck_grp_t, lck_grp_ticketcnt), offsetof(lck_grp_stats_t, lgss_ticket_…
75 …{"ticket-spin-", TIME_EVENT, offsetof(lck_grp_t, lck_grp_ticketcnt), offsetof(lck_grp_stats_t, lgs…
76 …{"adaptive-held-", STAT_NEEDED, offsetof(lck_grp_t, lck_grp_mtxcnt), offsetof(lck_grp_stats_t, lgs…
77 …{"adaptive-miss-", STAT_NEEDED, offsetof(lck_grp_t, lck_grp_mtxcnt), offsetof(lck_grp_stats_t, lgs…
78 …{"adaptive-wait-", STAT_NEEDED, offsetof(lck_grp_t, lck_grp_mtxcnt), offsetof(lck_grp_stats_t, lgs…
79 …{"adaptive-direct-wait-", STAT_NEEDED, offsetof(lck_grp_t, lck_grp_mtxcnt), offsetof(lck_grp_stats…
/xnu-10063.141.1/bsd/netinet/
H A Dcpu_in_cksum_gen.c170 _CASSERT(offsetof(struct _mbuf, _m_next) == 0); in os_cpu_in_cksum()
171 _CASSERT(offsetof(struct _mbuf, _m_data) == 16); in os_cpu_in_cksum()
172 _CASSERT(offsetof(struct _mbuf, _m_len) == 24); in os_cpu_in_cksum()
174 _CASSERT(offsetof(struct _mbuf, _m_next) == 0); in os_cpu_in_cksum()
175 _CASSERT(offsetof(struct _mbuf, _m_data) == 8); in os_cpu_in_cksum()
176 _CASSERT(offsetof(struct _mbuf, _m_len) == 12); in os_cpu_in_cksum()
179 _CASSERT(offsetof(struct _mbuf, _m_next) == in os_cpu_in_cksum()
180 offsetof(struct mbuf, m_next)); in os_cpu_in_cksum()
181 _CASSERT(offsetof(struct _mbuf, _m_data) == in os_cpu_in_cksum()
182 offsetof(struct mbuf, m_data)); in os_cpu_in_cksum()
[all …]
/xnu-10063.141.1/tests/vfs/
H A Dgetattrlist_fstype.c78 …RT_TRUE(attrbuf.fstypename_ref.attr_dataoffset + offsetof(struct myattrbuf, fstypename_ref) == off…
81 offsetof(struct myattrbuf, fstypename_ref),
82 offsetof(struct myattrbuf, fstypename));
/xnu-10063.141.1/bsd/sys/_types/
H A D_offsetof.h28 #ifndef offsetof
29 #define offsetof(type, field) __offsetof(type, field) macro
/xnu-10063.141.1/EXTERNAL_HEADERS/
H A Dstddef.h66 #ifndef offsetof
67 #define offsetof(t, d) __builtin_offsetof(t, d) macro
/xnu-10063.141.1/tests/
H A Dbootstrap_msgfilter.c62 .msgh_size = offsetof(struct test_msg, trailer),
81 .msgh_size = offsetof(struct test_msg, trailer),
/xnu-10063.141.1/osfmk/ipc/
H A Dmach_msg.c117 #ifndef offsetof
118 #define offsetof(type, member) ((size_t)(&((type *)0)->member)) macro
137 mach_copyout((kaddr), (uaddr) + offsetof(type_t, field), \
176 offsetof(mach_msg_user_header_t, msgh_voucher_port)) { in mach_msg_receive_too_large()
189 offsetof(mach_msg_user_header_t, msgh_remote_port)) { in mach_msg_receive_too_large()
585 static_assert(offsetof(mach_msg_send_uctx_t, send_dsc_count) == in mach_msg_copyin_user_header()
586 offsetof(mach_msg_user_base_t, body.msgh_descriptor_count)); in mach_msg_copyin_user_header()
1178 size = offsetof(struct mach_msg_filter_callbacks, alloc_service_port_sblabel); in mach_msg_filter_register_callback()
H A Dipc_kmsg.h196 static_assert(offsetof(struct ipc_kmsg, ikm_big_data) +
198 static_assert(offsetof(struct ipc_kmsg, ikm_small_data) + IKM_SMALL_MSG_SIZE +
/xnu-10063.141.1/security/
H A Dmac_internal.h295 …mac_internalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_internalize), label, instrin…
298 …mac_externalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_externalize), label, element…
301 …mac_externalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_externalize_audit), label, "…
/xnu-10063.141.1/bsd/dev/arm64/
H A Dsysctl.c174 (void *)offsetof(host_basic_info_data_t, physical_cpu_max),
187 (void *)offsetof(host_basic_info_data_t, physical_cpu),
201 (void *)offsetof(host_basic_info_data_t, logical_cpu_max),
214 (void *)offsetof(host_basic_info_data_t, logical_cpu),
/xnu-10063.141.1/bsd/skywalk/packet/
H A Dpacket_var.h280 _CASSERT(offsetof(struct __quantum, __q_flags) == 24); \
310 _CASSERT(offsetof(struct __quantum, __q_flags) == 24); \
496 _CASSERT(offsetof(struct __kern_packet, pkt_mbuf) == \
497 offsetof(struct __kern_packet, pkt_pkt)); \
605 _CASSERT(offsetof(struct __packet, __p_flags) == 24); \
637 _CASSERT(offsetof(struct __packet, __p_flags) == 24); \
664 _CASSERT(offsetof(struct __packet, __p_flags) == 24); \
/xnu-10063.141.1/tests/ipc/
H A Dmach_msg_transport.c234 if (tsize > offsetof(mach_msg_max_trailer_t, msgh_sender)) {
238 if (tsize > offsetof(mach_msg_max_trailer_t, msgh_audit)) {
242 if (tsize > offsetof(mach_msg_max_trailer_t, msgh_context)) {
246 if (tsize > offsetof(mach_msg_max_trailer_t, msgh_ad)) {
249 if (tsize > offsetof(mach_msg_max_trailer_t, msgh_labels)) {
/xnu-10063.141.1/osfmk/vm/
H A Dvm_reclaim.c146 offsetof(struct mach_vm_reclaim_buffer_v1_s, entries)); in vmdr_metadata_wire()
164 offsetof(struct mach_vm_reclaim_buffer_v1_s, entries)); in vmdr_metadata_unwire()
244 offsetof(struct mach_vm_reclaim_buffer_v1_s, entries); in vm_deferred_reclamation_buffer_init_internal()
246 offsetof(struct mach_vm_reclaim_buffer_v1_s, entries); in vm_deferred_reclamation_buffer_init_internal()
248 offsetof(struct mach_vm_reclaim_buffer_v1_s, indices); in vm_deferred_reclamation_buffer_init_internal()
382 return indices + offsetof(mach_vm_reclaim_indices_v1_t, head); in get_head_ptr()
388 return indices + offsetof(mach_vm_reclaim_indices_v1_t, tail); in get_tail_ptr()
394 return indices + offsetof(mach_vm_reclaim_indices_v1_t, busy); in get_busy_ptr()
/xnu-10063.141.1/bsd/pthread/
H A Dpthread_shims.c65 static_assert((sizeof(struct pthread_functions_s) - offsetof(struct pthread_functions_s, psynch_rw_…
66 static_assert((sizeof(struct pthread_callbacks_s) - offsetof(struct pthread_callbacks_s, PTHREAD_CA…
346 static_assert(offsetof(struct bsdthread_register_args, threadstart) + sizeof(user_addr_t) == in bsdthread_register()
347 offsetof(struct bsdthread_register_args, wqthread)); in bsdthread_register()
H A Dworkqueue_syscalls.h89 _Static_assert(offsetof(struct kqueue_workloop_params, kqwlp_version) == 0,
/xnu-10063.141.1/osfmk/kern/
H A Dlock_ticket.c99 static_assert(offsetof(hw_lck_ticket_t, tcurnext) == 2);
100 static_assert(offsetof(hw_lck_ticket_t, cticket) == 2);
101 static_assert(offsetof(hw_lck_ticket_t, nticket) == 3);
103 (HW_LCK_TICKET_LOCK_INCREMENT << (8 * offsetof(hw_lck_ticket_t, nticket))));
398 .hwsp_lock_offset = offsetof(lck_ticket_t, tu),
/xnu-10063.141.1/bsd/net/
H A Dif_pflog.h99 #define PFLOG_REAL_HDRLEN offsetof(struct pfloghdr, pad)

1234567