| /xnu-10002.41.9/osfmk/mach/ |
| H A D | mach_types.defs | 65 * Mach kernel interface type declarations 74 type memory_object_offset_t = uint64_t; 75 type memory_object_size_t = uint64_t; 76 type memory_object_cluster_size_t = uint32_t; 77 type memory_object_fault_info_t = array[16] of integer_t; 82 type upl_size_t = uint32_t; 83 type upl_offset_t = uint32_t; 84 type upl_page_info_t = struct[2] of integer_t; 85 type upl_page_info_array_t = array[*:256] of upl_page_info_t; 87 type upl_t = mach_port_t [all …]
|
| H A D | std_types.defs | 59 * Mach kernel standard interface type declarations 70 type int8_t = MACH_MSG_TYPE_INTEGER_8; 71 type uint8_t = MACH_MSG_TYPE_INTEGER_8; 72 type int16_t = MACH_MSG_TYPE_INTEGER_16; 73 type uint16_t = MACH_MSG_TYPE_INTEGER_16; 74 type int32_t = MACH_MSG_TYPE_INTEGER_32; 75 type uint32_t = MACH_MSG_TYPE_INTEGER_32; 76 type int64_t = MACH_MSG_TYPE_INTEGER_64; 77 type uint64_t = MACH_MSG_TYPE_INTEGER_64; 83 type int32 = int32_t; [all …]
|
| /xnu-10002.41.9/bsd/dev/arm64/ |
| H A D | disassembler.c | 14 uint8_t type; member 18 …{ .mask = 0xFFFFFFFF, .value = FASTTRAP_ARM64_OP_VALUE_FUNC_ENTRY, .type = FASTTRAP_T_ARM64_STANDA… 19 …M64_OP_MASK_LDR_S_PC_REL, .value = FASTTRAP_ARM64_OP_VALUE_LDR_S_PC_REL, .type = FASTTRAP_T_ARM64_… 20 …M64_OP_MASK_LDR_W_PC_REL, .value = FASTTRAP_ARM64_OP_VALUE_LDR_W_PC_REL, .type = FASTTRAP_T_ARM64_… 21 …M64_OP_MASK_LDR_D_PC_REL, .value = FASTTRAP_ARM64_OP_VALUE_LDR_D_PC_REL, .type = FASTTRAP_T_ARM64_… 22 …M64_OP_MASK_LDR_X_PC_REL, .value = FASTTRAP_ARM64_OP_VALUE_LDR_X_PC_REL, .type = FASTTRAP_T_ARM64_… 23 …M64_OP_MASK_LDR_Q_PC_REL, .value = FASTTRAP_ARM64_OP_VALUE_LDR_Q_PC_REL, .type = FASTTRAP_T_ARM64_… 24 …M64_OP_MASK_LRDSW_PC_REL, .value = FASTTRAP_ARM64_OP_VALUE_LRDSW_PC_REL, .type = FASTTRAP_T_ARM64_… 25 …4_OP_MASK_B_COND_PC_REL, .value = FASTTRAP_ARM64_OP_VALUE_B_COND_PC_REL, .type = FASTTRAP_T_ARM64_… 26 …4_OP_MASK_CBNZ_W_PC_REL, .value = FASTTRAP_ARM64_OP_VALUE_CBNZ_W_PC_REL, .type = FASTTRAP_T_ARM64_… [all …]
|
| /xnu-10002.41.9/libkern/libkern/ |
| H A D | tree.h | 86 #define SPLAY_HEAD(name, type) \ argument 88 struct type *sph_root; /* root of the tree */ \ 98 #define SPLAY_ENTRY(type) \ argument 100 struct type *spe_left; /* left element */ \ 101 struct type *spe_right; /* right element */ \ 143 #define SPLAY_PROTOTYPE(name, type, field, cmp) \ argument 144 void name##_SPLAY(struct name *, struct type *); \ 146 struct type *name##_SPLAY_INSERT(struct name *, struct type *); \ 147 struct type *name##_SPLAY_REMOVE(struct name *, struct type *); \ 150 static __inline struct type * \ [all …]
|
| /xnu-10002.41.9/pexpert/gen/ |
| H A D | kcformat.c | 62 kc_kind2index(kc_kind_t type) in kc_kind2index() argument 64 switch (type) { in kc_kind2index() 79 PE_set_kc_header(kc_kind_t type, kernel_mach_header_t *header, uintptr_t slide) in PE_set_kc_header() argument 81 kc_index_t i = kc_kind2index(type); in PE_set_kc_header() 108 PE_reset_kc_header(kc_kind_t type) in PE_reset_kc_header() argument 110 if (type == KCKindPrimary) { in PE_reset_kc_header() 114 kc_index_t i = kc_kind2index(type); in PE_reset_kc_header() 121 PE_set_kc_header_and_base(kc_kind_t type, kernel_mach_header_t * header, void *base, uintptr_t slid… in PE_set_kc_header_and_base() argument 123 kc_index_t i = kc_kind2index(type); in PE_set_kc_header_and_base() 132 PE_get_kc_header(kc_kind_t type) in PE_get_kc_header() argument [all …]
|
| /xnu-10002.41.9/iokit/IOKit/ |
| H A D | IOLib.h | 329 #define IOMallocType(type) ({ \ argument 330 static _KALLOC_TYPE_DEFINE(kt_view_var, type, \ 332 (type *) IOMallocTypeImpl(kt_view_var); \ 335 #define IOFreeType(elem, type) ({ \ argument 336 static _KALLOC_TYPE_DEFINE(kt_view_var, type, \ 338 IOFREETYPE_ASSERT_COMPATIBLE_POINTER(elem, type); \ 343 #define IONewData(type, count) \ argument 344 ((type *)IOMallocData(IOMallocArraySize(0, sizeof(type), count))) 346 #define IONewZeroData(type, count) \ argument 347 ((type *)IOMallocZeroData(IOMallocArraySize(0, sizeof(type), count))) [all …]
|
| /xnu-10002.41.9/osfmk/mach_debug/ |
| H A D | mach_debug_types.defs | 59 * Mach kernel debugging interface type declarations 67 type zone_name_t = struct[80] of char; /* deprecated */ 68 type zone_name_array_t = array[] of zone_name_t; /* deprecated */ 70 type zone_info_t = struct[9] of integer_t; /* deprecated */ 71 type zone_info_array_t = array[] of zone_info_t; /* deprecated */ 73 type mach_zone_name_t = struct[80] of char; 74 type mach_zone_name_array_t = array[] of mach_zone_name_t; 76 type mach_zone_info_t = struct[8] of uint64_t; 77 type mach_zone_info_array_t = array[] of mach_zone_info_t; 79 type task_zone_info_t = struct[11] of uint64_t; /* deprecated */ [all …]
|
| /xnu-10002.41.9/osfmk/kern/ |
| H A D | queue.h | 433 #define qe_element(qe, type, field) __container_of(qe, type, field) argument 520 #define qe_dequeue_head(head, type, field) ({ \ argument 522 type *_tmp_element = (type*) NULL; \ 524 _tmp_element = qe_element(_tmp_entry, type, field); \ 529 #define qe_dequeue_tail(head, type, field) ({ \ argument 531 type *_tmp_element = (type*) NULL; \ 533 _tmp_element = qe_element(_tmp_entry, type, field); \ 538 #define qe_queue_first(head, type, field) ({ \ argument 540 type *_tmp_element = (type*) NULL; \ 542 _tmp_element = qe_element(_tmp_entry, type, field); \ [all …]
|
| H A D | kalloc.h | 455 #define KALLOC_TYPE_DEFINE(var, type, flags) \ argument 456 _KALLOC_TYPE_DEFINE(var, type, flags); \ 457 __ZONE_DECLARE_TYPE(var, type) 670 #define kalloc_type_require(type, value) ({ \ argument 671 static _KALLOC_TYPE_DEFINE(kt_view_var, type, KT_SHARED_ACCT); \ 762 #define KT_SUMMARY_GRANULES(type) \ argument 763 (__builtin_xnu_type_summary(type) & KT_SUMMARY_MASK_TYPE_BITS) 774 #define KALLOC_TYPE_SIG_CHECK(mask, type) \ argument 775 ((KT_SUMMARY_GRANULES(type) & ~(mask)) == 0) 785 #define KALLOC_TYPE_IS_DATA_ONLY(type) \ argument [all …]
|
| H A D | circle_queue.h | 230 #define cqe_element(qe, type, field) __container_of(qe, type, field) argument 313 #define cqe_dequeue_head(head, type, field) ({ \ argument 315 type *_tmp_element = (type*) NULL; \ 317 _tmp_element = cqe_element(_tmp_entry, type, field); \ 322 #define cqe_dequeue_tail(head, type, field) ({ \ argument 324 type *_tmp_element = (type*) NULL; \ 326 _tmp_element = cqe_element(_tmp_entry, type, field); \ 331 #define cqe_queue_first(head, type, field) ({ \ argument 333 type *_tmp_element = (type*) NULL; \ 335 _tmp_element = cqe_element(_tmp_entry, type, field); \ [all …]
|
| H A D | ipc_kobject.c | 786 ipc_kobject_type_t type) in ipc_kobject_set_raw() argument 791 type |= port->ip_immovable_receive << 14; in ipc_kobject_set_raw() 792 type |= port->ip_immovable_send << 15; in ipc_kobject_set_raw() 793 type ^= OS_PTRAUTH_DISCRIMINATOR("ipc_port.ip_kobject"); in ipc_kobject_set_raw() 796 ptrauth_blend_discriminator(store, type)); in ipc_kobject_set_raw() 798 (void)type; in ipc_kobject_set_raw() 808 ipc_kobject_type_t type) in ipc_kobject_set_internal() argument 810 assert(type != IKOT_NONE); in ipc_kobject_set_internal() 811 io_bits_or(ip_to_object(port), type); in ipc_kobject_set_internal() 812 ipc_kobject_set_raw(port, kobject, type); in ipc_kobject_set_internal() [all …]
|
| H A D | ipc_kobject.h | 214 #define IPC_KOBJECT_DEFINE(type, ...) \ argument 216 static struct ipc_kobject_ops ipc_kobject_ops_##type = { \ 217 .iko_op_type = type, \ 218 .iko_op_name = #type, \ 222 &ipc_kobject_ops_##type) 249 ipc_kobject_type_t type, 255 ipc_kobject_type_t type, 266 ipc_kobject_type_t type, 273 ipc_kobject_type_t type, 363 ipc_kobject_type_t type); [all …]
|
| H A D | priority_queue.h | 231 #define priority_heap_make_comparator(name1, name2, type, field, ...) \ argument 233 type *name1 = pqe_element_fast(__e1, type, field); \ 234 type *name2 = pqe_element_fast(__e2, type, field); \ 320 #define pqe_element_fast(qe, type, field) __container_of(qe, type, field) argument 338 #define pqe_element(qe, type, field) ({ \ argument 340 _tmp_entry ? pqe_element_fast(_tmp_entry, type, field) : ((type *)NULL);\ 400 #define priority_queue_destroy(pq, type, field, callback) \ argument 402 void (^__callback)(type *) = (callback); /* type check */ \ 403 _priority_queue_destroy(pq, offsetof(type, field), \ 420 #define priority_queue_min(pq, type, field) ({ \ argument [all …]
|
| /xnu-10002.41.9/iokit/DriverKit/ |
| H A D | queue_implementation.h | 433 #define qe_element(qe, type, field) __container_of(qe, type, field) argument 520 #define qe_dequeue_head(head, type, field) ({ \ argument 522 type *_tmp_element = (type*) NULL; \ 524 _tmp_element = qe_element(_tmp_entry, type, field); \ 529 #define qe_dequeue_tail(head, type, field) ({ \ argument 531 type *_tmp_element = (type*) NULL; \ 533 _tmp_element = qe_element(_tmp_entry, type, field); \ 538 #define qe_queue_first(head, type, field) ({ \ argument 540 type *_tmp_element = (type*) NULL; \ 542 _tmp_element = qe_element(_tmp_entry, type, field); \ [all …]
|
| /xnu-10002.41.9/osfmk/mach/machine/ |
| H A D | machine_types.defs | 39 type short = int16_t; 40 type int = int32_t; 41 type unsigned = uint32_t; 43 type float = MACH_MSG_TYPE_REAL_32; 44 type double = MACH_MSG_TYPE_REAL_64; 51 * integer type, e.g. 32 or 64 or.. whatever 55 * type-casting between the two. 62 type uintptr_t = uint64_t; 63 type intptr_t = int64_t; 65 type uintptr_t = uint32_t; [all …]
|
| /xnu-10002.41.9/osfmk/device/ |
| H A D | iokit_rpc.c | 95 iokit_lookup_io_object(ipc_port_t port, ipc_kobject_type_t type) in iokit_lookup_io_object() argument 106 kobj = ipc_kobject_get_locked(port, type); in iokit_lookup_io_object() 113 obj = iokit_copy_object_for_consumed_kobject(kobj, type); in iokit_lookup_io_object() 148 iokit_lookup_object_in_space_with_port_name(mach_port_name_t name, ipc_kobject_type_t type, ipc_spa… in iokit_lookup_object_in_space_with_port_name() argument 162 kobj = ipc_kobject_get_locked(port, type); in iokit_lookup_object_in_space_with_port_name() 168 obj = iokit_copy_object_for_consumed_kobject(kobj, type); in iokit_lookup_object_in_space_with_port_name() 177 iokit_lookup_object_with_port_name(mach_port_name_t name, ipc_kobject_type_t type, task_t task) in iokit_lookup_object_with_port_name() argument 179 return iokit_lookup_object_in_space_with_port_name(name, type, task->itk_space); in iokit_lookup_object_with_port_name() 200 iokit_lookup_raw_current_task(mach_port_name_t name, ipc_kobject_type_t * type) in iokit_lookup_raw_current_task() argument 208 if (type != NULL) { in iokit_lookup_raw_current_task() [all …]
|
| /xnu-10002.41.9/libkern/os/ |
| H A D | cpp_util.h | 30 template <class _T> struct remove_reference {typedef _T type;}; typedef 31 template <class _T> struct remove_reference<_T&> {typedef _T type;}; 32 template <class _T> struct remove_reference<_T &&> {typedef _T type;}; 33 template <class _T> using remove_reference_t = typename remove_reference<_T>::type; 39 template <class _T> struct remove_pointer {typedef _T type;}; 40 template <class _T> struct remove_pointer<_T*> {typedef _T type;}; 41 template <class _T> struct remove_pointer<_T* const> {typedef _T type;}; 42 template <class _T> struct remove_pointer<_T* volatile> {typedef _T type;}; 43 template <class _T> struct remove_pointer<_T* const volatile> {typedef _T type;}; 44 template <class _T> using remove_pointer_t = typename remove_pointer<_T>::type; [all …]
|
| H A D | system_event_log.c | 29 convert_type_to_string(uint8_t type) in convert_type_to_string() argument 31 switch (type) { in convert_type_to_string() 55 _record_system_event_internal(uint8_t type, uint8_t subsystem, const char *event, const char *paylo… in _record_system_event_internal() argument 57 const char *type_string = convert_type_to_string(type); in _record_system_event_internal() 68 record_system_event(uint8_t type, uint8_t subsystem, const char *event, const char *format, ...) in record_system_event() argument 81 _record_system_event_internal(type, subsystem, event, payload); in record_system_event() 85 record_system_event_no_varargs(uint8_t type, uint8_t subsystem, const char *event, const char *payl… in record_system_event_no_varargs() argument 91 _record_system_event_internal(type, subsystem, event, payload); in record_system_event_no_varargs()
|
| /xnu-10002.41.9/bsd/netinet/ |
| H A D | ip_icmp.h | 228 #define ICMP_INFOTYPE(type) \ argument 229 ((type) == ICMP_ECHOREPLY || (type) == ICMP_ECHO || \ 230 (type) == ICMP_ROUTERADVERT || (type) == ICMP_ROUTERSOLICIT || \ 231 (type) == ICMP_TSTAMP || (type) == ICMP_TSTAMPREPLY || \ 232 (type) == ICMP_IREQ || (type) == ICMP_IREQREPLY || \ 233 (type) == ICMP_MASKREQ || (type) == ICMP_MASKREPLY) 235 #define ICMP_ERRORTYPE(type) \ argument 236 ((type) == ICMP_UNREACH || (type) == ICMP_SOURCEQUENCH || \ 237 (type) == ICMP_REDIRECT || (type) == ICMP_TIMXCEED || \ 238 (type) == ICMP_PARAMPROB)
|
| /xnu-10002.41.9/bsd/sys/ |
| H A D | malloc.h | 151 #define MALLOC(space, cast, size, type, flags) \ 152 (space) = (cast)_MALLOC(size, type, flags) 154 #define FREE(addr, type) \ 155 _FREE((void *)addr, type) 157 #define MALLOC_ZONE(space, cast, size, type, flags) \ 158 (space) = (cast)_MALLOC_ZONE(size, type, flags) 160 #define FREE_ZONE(addr, size, type) \ 161 _FREE_ZONE((void *)addr, size, type) 168 int type, 176 int type); [all …]
|
| /xnu-10002.41.9/tests/ |
| H A D | turnstiles_test.c | 30 thread_create_at_qos(qos_class_t qos, void * (*function)(void *), int type) in thread_create_at_qos() argument 44 pthread_create(&thread, &attr, function, (void *)type); in thread_create_at_qos() 80 turnstile_prim_lock(int type) in turnstile_prim_lock() argument 84 int in_val = type; in turnstile_prim_lock() 86 T_LOG("sysctlbyname lock type %d called from thread %llu \n", type, tid); in turnstile_prim_lock() 92 turnstile_prim_unlock(int type) in turnstile_prim_unlock() argument 96 int in_val = type; in turnstile_prim_unlock() 98 T_LOG("sysctlbyname unlock type %d called from thread %llu \n", type, tid); in turnstile_prim_unlock() 180 int type = (int)arg; in take_lock_check_priority() local 187 turnstile_prim_lock(type); in take_lock_check_priority() [all …]
|
| /xnu-10002.41.9/bsd/skywalk/core/ |
| H A D | skywalk_common.h | 78 #define container_of(ptr, type, member) \ argument 79 ((type*)(((uintptr_t)ptr) - offsetof(type, member))) 669 #define _sk_alloc_type(probename, type, flags, name) \ argument 674 ret = kalloc_type_tag(type, Z_ZERO | (flags), (name)->tag); \ 675 DTRACE_SKYWALK3(probename, char *, #type, int, (flags), \ 680 #define _sk_alloc_type_array(probename, type, count, flags, name) \ argument 684 ret = kalloc_type_tag(type, (count), Z_ZERO | (flags), \ 686 DTRACE_SKYWALK4(probename, char *, #type, size_t, (count), \ 702 #define _sk_realloc_type_array(probename, type, oldcount, newcount, elem, flags, name) \ argument 706 ret = krealloc_type_tag(type, (oldcount), (newcount), (elem), \ [all …]
|
| /xnu-10002.41.9/san/memory/ |
| H A D | kasan-blacklist | 18 type:struct linker_set_entry 19 type:linker_set_entry 20 type:struct startup_entry 21 type:startup_entry 22 type:struct kalloc_type_view 23 type:struct kernel_brk_descriptor 24 type:kernel_brk_descriptor 27 type:vm_statistics64 28 type:struct vm_statistics64 29 type:vm_statistics64_data_t [all …]
|
| /xnu-10002.41.9/EXTERNAL_HEADERS/CoreEntitlements/ |
| H A D | Serialization.h | 56 CESerializedElementType_t type; member 170 #define CESerializeInteger(intv) (CESerializedElement_t){.type = kCESerializedInteger, .data.value … 171 #define CESerializeBool(boolVal) (CESerializedElement_t){.type = kCESerializedBool, .data.value = !… 172 #define CESerializeStaticString(strVal) (CESerializedElement_t){.type = kCESerializedString, .data.… 173 #define CESerializeKey(strVal) (CESerializedElement_t){.type = kCESerializedKey, .data.value = (int… 174 #define CESerializeDynamicKey(strVal, len) (CESerializedElement_t){.type = kCESerializedKey, .data.… 175 #define CESerializeString(strVal, len) (CESerializedElement_t){.type = kCESerializedString, .data.v… 176 #define CESerializeData(dataVal, len) (CESerializedElement_t){.type = kCESerializedData, .data.valu… 177 …zeArray(...) (CESerializedElement_t){.type = kCESerializedArrayBegin}, __VA_ARGS__ , (CESerialized… 178 …onary(...) (CESerializedElement_t){.type = kCESerializedDictionaryBegin}, __VA_ARGS__ , (CESeriali…
|
| /xnu-10002.41.9/bsd/kern/ |
| H A D | uipc_mbuf2.c | 378 m_tag_kalloc_notsupp(__unused uint32_t id, __unused uint16_t type, __unused uint16_t len, __unused … in m_tag_kalloc_notsupp() argument 458 m_tag_create(uint32_t id, uint16_t type, int len, int wait, struct mbuf *buf) in m_tag_create() argument 465 return m_tag_create_mbuf(id, type, (uint16_t)len, wait, buf); in m_tag_create() 470 return m_tag_alloc(id, type, (uint16_t)len, wait); in m_tag_create() 476 m_tag_alloc_mbuf(u_int32_t id, u_int16_t type, uint16_t len, int wait) in m_tag_alloc_mbuf() argument 512 M_TAG_INIT(t, id, type, len, (void *)(t + 1), mb_cl); in m_tag_alloc_mbuf() 520 m_tag_create_mbuf(uint32_t id, uint16_t type, uint16_t len, int wait, struct mbuf *buf) in m_tag_create_mbuf() argument 527 return m_tag_alloc(id, type, len, wait); in m_tag_create_mbuf() 567 return m_tag_alloc(id, type, len, wait); in m_tag_create_mbuf() 570 M_TAG_INIT(t, id, type, len, (void *)(t + 1), mb_cl); in m_tag_create_mbuf() [all …]
|