| /xnu-8019.80.24/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-8019.80.24/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-8019.80.24/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-8019.80.24/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-8019.80.24/bsd/sys/ |
| H A D | malloc.h | 146 #define MALLOC(space, cast, size, type, flags) \ argument 148 (space) = (cast)__MALLOC(size, type, flags, &site); }) 150 #define REALLOC(space, cast, addr, size, type, flags) \ argument 152 (space) = (cast)__REALLOC(addr, size, type, flags, &site); }) 154 #define _MALLOC(size, type, flags) \ argument 156 __MALLOC(size, type, flags, &site); }) 158 #define _REALLOC(addr, size, type, flags) \ argument 160 __REALLOC(addr, size, type, flags, &site); }) 162 #define _FREE(addr, type) \ argument 165 #define FREE(addr, type) \ argument [all …]
|
| /xnu-8019.80.24/osfmk/kern/ |
| H A D | queue.h | 454 #define qe_element(qe, type, field) __container_of(qe, type, field) argument 541 #define qe_dequeue_head(head, type, field) ({ \ argument 543 type *_tmp_element = (type*) NULL; \ 545 _tmp_element = qe_element(_tmp_entry, type, field); \ 550 #define qe_dequeue_tail(head, type, field) ({ \ argument 552 type *_tmp_element = (type*) NULL; \ 554 _tmp_element = qe_element(_tmp_entry, type, field); \ 559 #define qe_queue_first(head, type, field) ({ \ argument 561 type *_tmp_element = (type*) NULL; \ 563 _tmp_element = qe_element(_tmp_entry, type, field); \ [all …]
|
| H A D | circle_queue.h | 184 #define cqe_element(qe, type, field) __container_of(qe, type, field) argument 267 #define cqe_dequeue_head(head, type, field) ({ \ argument 269 type *_tmp_element = (type*) NULL; \ 271 _tmp_element = cqe_element(_tmp_entry, type, field); \ 276 #define cqe_dequeue_tail(head, type, field) ({ \ argument 278 type *_tmp_element = (type*) NULL; \ 280 _tmp_element = cqe_element(_tmp_entry, type, field); \ 285 #define cqe_queue_first(head, type, field) ({ \ argument 287 type *_tmp_element = (type*) NULL; \ 289 _tmp_element = cqe_element(_tmp_entry, type, field); \ [all …]
|
| H A D | ipc_kobject.h | 226 #define IPC_KOBJECT_DEFINE(type, ...) \ argument 228 static struct ipc_kobject_ops ipc_kobject_ops_##type = { \ 229 .iko_op_type = type, \ 230 .iko_op_name = #type, \ 234 &ipc_kobject_ops_##type) 263 ipc_kobject_type_t type, 269 ipc_kobject_type_t type, 280 ipc_kobject_type_t type, 288 ipc_kobject_type_t type, 303 ipc_kobject_type_t type); [all …]
|
| H A D | ipc_kobject.c | 689 ipc_kobject_type_t type) in ipc_kobject_set_raw() argument 695 type ^= OS_PTRAUTH_DISCRIMINATOR("ipc_port.ip_kobject"); in ipc_kobject_set_raw() 698 ptrauth_blend_discriminator(store, type)); in ipc_kobject_set_raw() 701 (void)type; in ipc_kobject_set_raw() 711 ipc_kobject_type_t type) in ipc_kobject_set_internal() argument 713 assert(type != IKOT_NONE); in ipc_kobject_set_internal() 714 io_bits_or(ip_to_object(port), type | IO_BITS_KOBJECT); in ipc_kobject_set_internal() 715 ipc_kobject_set_raw(port, kobject, type); in ipc_kobject_set_internal() 733 ipc_kobject_type_t type) in ipc_kobject_get_raw() argument 740 type ^= OS_PTRAUTH_DISCRIMINATOR("ipc_port.ip_kobject"); in ipc_kobject_get_raw() [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 …]
|
| H A D | kalloc.h | 316 #define KALLOC_TYPE_DEFINE(var, type, flags) \ argument 317 _KALLOC_TYPE_DEFINE(var, type, flags) 538 #define kalloc_type_require(type, value) ({ \ argument 539 static KALLOC_TYPE_DEFINE(kt_view_var, type, \ 560 #define kalloc_type_2(type, flags) ({ \ argument 561 static KALLOC_TYPE_DEFINE(kt_view_var, type, KT_SHARED_ACCT); \ 562 (type *)kalloc_type_impl(kt_view_var, flags); \ 565 #define kfree_type_2(type, elem) ({ \ argument 566 static KALLOC_TYPE_DEFINE(kt_view_var, type, KT_SHARED_ACCT); \ 570 #define kfree_type_3(type, count, elem) \ argument [all …]
|
| H A D | coalition.c | 59 int coalitions_get_list(int type, struct procinfo_coalinfo *coal_list, int list_sz); 60 coalition_t task_get_coalition(task_t task, int type); 104 coal_type_str(int type) in coal_type_str() argument 106 switch (type) { in coal_type_str() 117 int type; member 265 uint32_t type; member 334 (s_coalition_types[(coal)->type].func)(coal, ## __VA_ARGS__) 551 assert(coal && coal->type == COALITION_TYPE_RESOURCE); in i_coal_resource_init() 572 assert(coal && coal->type == COALITION_TYPE_RESOURCE); in i_coal_resource_dealloc() 583 assert(coal && coal->type == COALITION_TYPE_RESOURCE); in i_coal_resource_adopt_task() [all …]
|
| /xnu-8019.80.24/iokit/DriverKit/ |
| H A D | queue_implementation.h | 454 #define qe_element(qe, type, field) __container_of(qe, type, field) argument 541 #define qe_dequeue_head(head, type, field) ({ \ argument 543 type *_tmp_element = (type*) NULL; \ 545 _tmp_element = qe_element(_tmp_entry, type, field); \ 550 #define qe_dequeue_tail(head, type, field) ({ \ argument 552 type *_tmp_element = (type*) NULL; \ 554 _tmp_element = qe_element(_tmp_entry, type, field); \ 559 #define qe_queue_first(head, type, field) ({ \ argument 561 type *_tmp_element = (type*) NULL; \ 563 _tmp_element = qe_element(_tmp_entry, type, field); \ [all …]
|
| /xnu-8019.80.24/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-8019.80.24/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-8019.80.24/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-8019.80.24/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-8019.80.24/osfmk/device/ |
| H A D | iokit_rpc.c | 98 iokit_lookup_io_object(ipc_port_t port, ipc_kobject_type_t type) in iokit_lookup_io_object() argument 111 obj = ipc_kobject_get_locked(port, type); in iokit_lookup_io_object() 113 iokit_add_reference( obj, type ); in iokit_lookup_io_object() 149 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 170 obj = ipc_kobject_get_locked(port, type); in iokit_lookup_object_in_space_with_port_name() 172 iokit_add_reference(obj, type); in iokit_lookup_object_in_space_with_port_name() 184 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 186 return iokit_lookup_object_in_space_with_port_name(name, type, task->itk_space); in iokit_lookup_object_with_port_name() 207 iokit_lookup_raw_current_task(mach_port_name_t name, ipc_kobject_type_t * type) in iokit_lookup_raw_current_task() argument 215 if (type != NULL) { in iokit_lookup_raw_current_task() [all …]
|
| /xnu-8019.80.24/EXTERNAL_HEADERS/CoreEntitlements/ |
| H A D | Serialization.h | 50 CESerializedElementType_t type; member 129 #define CESerializeInteger(intv) (CESerializedElement_t){.type = kCESerializedInteger, .data = {.va… 130 #define CESerializeBool(boolVal) (CESerializedElement_t){.type = kCESerializedBool, .data = {.value… 131 #define CESerializeStaticString(strVal) (CESerializedElement_t){.type = kCESerializedString, .data … 132 #define CESerializeKey(strVal) (CESerializedElement_t){.type = kCESerializedKey, .data = {.bytes = … 133 #define CESerializeDynamicKey(strVal, len) (CESerializedElement_t){.type = kCESerializedKey, .data … 134 #define CESerializeString(strVal, len) (CESerializedElement_t){.type = kCESerializedString, .data =… 135 …zeArray(...) (CESerializedElement_t){.type = kCESerializedArrayBegin}, __VA_ARGS__ , (CESerialized… 136 …onary(...) (CESerializedElement_t){.type = kCESerializedDictionaryBegin}, __VA_ARGS__ , (CESeriali…
|
| /xnu-8019.80.24/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))) 704 #define _sk_alloc_type(probename, type, flags, tag) \ argument 711 ret = kalloc_type_tag(type, Z_ZERO | (flags), \ 714 DTRACE_SKYWALK3(probename, char *, #type, int, (flags), \ 719 #define _sk_alloc_type_array(probename, type, count, flags, tag) \ argument 725 ret = kalloc_type_tag_bt(type, (count), Z_ZERO | (flags), \ 728 DTRACE_SKYWALK4(probename, char *, #type, size_t, (count), \ 733 #define _sk_alloc_type_header_array(probename, htype, type, count, flags, tag) \ argument 739 ret = kalloc_type_tag_bt(htype, type, (count), Z_ZERO | (flags),\ [all …]
|
| /xnu-8019.80.24/libkdd/tests/ |
| H A D | Tests.swift | 123 item.type = KCDATA_BUFFER_BEGIN_CRASHINFO in testPaddingFlags() 128 item.type = UInt32(KCDATA_TYPE_LIBRARY_LOADINFO) in testPaddingFlags() 138 item.type = KCDATA_TYPE_BUFFER_END in testPaddingFlags() 167 item.type = KCDATA_BUFFER_BEGIN_CRASHINFO in testBootArgs() 172 item.type = UInt32(STACKSHOT_KCTYPE_BOOTARGS) in testBootArgs() 179 item.type = KCDATA_TYPE_BUFFER_END in testBootArgs() 195 item.type = KCDATA_BUFFER_BEGIN_CRASHINFO in testBootArgsMissingNul() 200 item.type = UInt32(STACKSHOT_KCTYPE_BOOTARGS) in testBootArgsMissingNul() 208 item.type = KCDATA_TYPE_BUFFER_END in testBootArgsMissingNul() 221 item.type = KCDATA_BUFFER_BEGIN_CRASHINFO in testLoadInfo() [all …]
|
| /xnu-8019.80.24/iokit/IOKit/ |
| H A D | IOKitServer.h | 129 extern void iokit_add_reference( io_object_t obj, ipc_kobject_type_t type ); 132 ipc_kobject_type_t type ); 135 ipc_port_t port, ipc_kobject_type_t type, mach_port_mscount_t * mscount ); 140 unsigned int type, 150 ipc_kobject_type_t type ); 153 ipc_kobject_type_t type ); 156 io_object_t obj, ipc_kobject_type_t type ); 162 extern io_object_t iokit_lookup_io_object(ipc_port_t port, ipc_kobject_type_t type); 166 …_t iokit_lookup_object_with_port_name(mach_port_name_t name, ipc_kobject_type_t type, task_t task); 178 …ern_return_t iokit_switch_object_port( ipc_port_t port, io_object_t obj, ipc_kobject_type_t type ); [all …]
|
| /xnu-8019.80.24/bsd/net/ |
| H A D | ether_if_module.c | 120 u_int16_t type; /* Type of protocol stored in data */ member 170 desc_blk->block_ptr[current - 1].type = 0; in ether_del_proto() 183 desc_blk->block_ptr[desc_blk->n_max_used - 1].type == 0; in ether_del_proto() 201 switch (demux->type) { in ether_add_proto_internal() 228 switch (demux->type) { in ether_add_proto_internal() 231 if (desc_blk->block_ptr[i].type == in ether_add_proto_internal() 242 if (desc_blk->block_ptr[i].type == in ether_add_proto_internal() 243 demux->type && in ether_add_proto_internal() 291 if (desc_blk->block_ptr[i].type == 0) { in ether_add_proto_internal() 307 switch (demux->type) { in ether_add_proto_internal() [all …]
|
| /xnu-8019.80.24/bsd/kern/ |
| H A D | kern_malloc.c | 83 int type, in __MALLOC_ext() argument 90 if (type >= M_LAST) { in __MALLOC_ext() 128 __MALLOC(size_t size, int type, int flags, vm_allocation_site_t *site) in __MALLOC() argument 130 return __MALLOC_ext(size, type, flags, site, KHEAP_DEFAULT); in __MALLOC() 137 int type __unused, in __REALLOC() 156 _MALLOC_external(size_t size, int type, int flags); 158 _MALLOC_external(size_t size, int type, int flags) in _MALLOC_external() argument 166 if (type == M_SONAME) { in _MALLOC_external() 173 return __MALLOC_ext(size, type, flags, &site, heap); in _MALLOC_external() 177 _FREE_external(void *addr, int type); [all …]
|