| /xnu-8792.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-8792.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-8792.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-8792.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-8792.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 …]
|
| 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 ); 164 extern io_object_t iokit_lookup_io_object(ipc_port_t port, ipc_kobject_type_t type); 168 …_t iokit_lookup_object_with_port_name(mach_port_name_t name, ipc_kobject_type_t type, task_t task); 180 …ern_return_t iokit_switch_object_port( ipc_port_t port, io_object_t obj, ipc_kobject_type_t type ); [all …]
|
| /xnu-8792.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-8792.41.9/osfmk/kern/ |
| H A D | queue.h | 445 #define qe_element(qe, type, field) __container_of(qe, type, field) argument 532 #define qe_dequeue_head(head, type, field) ({ \ argument 534 type *_tmp_element = (type*) NULL; \ 536 _tmp_element = qe_element(_tmp_entry, type, field); \ 541 #define qe_dequeue_tail(head, type, field) ({ \ argument 543 type *_tmp_element = (type*) NULL; \ 545 _tmp_element = qe_element(_tmp_entry, type, field); \ 550 #define qe_queue_first(head, type, field) ({ \ argument 552 type *_tmp_element = (type*) NULL; \ 554 _tmp_element = qe_element(_tmp_entry, type, field); \ [all …]
|
| H A D | kalloc.h | 462 #define KALLOC_TYPE_DEFINE(var, type, flags) \ argument 463 _KALLOC_TYPE_DEFINE(var, type, flags) 685 #define kalloc_type_require(type, value) ({ \ argument 686 static KALLOC_TYPE_DEFINE(kt_view_var, type, KT_SHARED_ACCT); \ 777 #define KT_SUMMARY_GRANULES(type) \ argument 778 (__builtin_xnu_type_summary(type) & KT_SUMMARY_MASK_TYPE_BITS) 789 #define KALLOC_TYPE_SIG_CHECK(mask, type) \ argument 790 ((KT_SUMMARY_GRANULES(type) & ~(mask)) == 0) 800 #define KALLOC_TYPE_IS_DATA_ONLY(type) \ argument 801 KALLOC_TYPE_SIG_CHECK(KT_SUMMARY_MASK_DATA, type) [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 | 670 ipc_kobject_type_t type) in ipc_kobject_set_raw() argument 676 type ^= OS_PTRAUTH_DISCRIMINATOR("ipc_port.ip_kobject"); in ipc_kobject_set_raw() 679 ptrauth_blend_discriminator(store, type)); in ipc_kobject_set_raw() 682 (void)type; in ipc_kobject_set_raw() 692 ipc_kobject_type_t type) in ipc_kobject_set_internal() argument 694 assert(type != IKOT_NONE); in ipc_kobject_set_internal() 695 io_bits_or(ip_to_object(port), type); in ipc_kobject_set_internal() 696 ipc_kobject_set_raw(port, kobject, type); in ipc_kobject_set_internal() 714 ipc_kobject_type_t type) in ipc_kobject_get_raw() argument 721 type ^= OS_PTRAUTH_DISCRIMINATOR("ipc_port.ip_kobject"); in ipc_kobject_get_raw() [all …]
|
| H A D | ipc_kobject.h | 215 #define IPC_KOBJECT_DEFINE(type, ...) \ argument 217 static struct ipc_kobject_ops ipc_kobject_ops_##type = { \ 218 .iko_op_type = type, \ 219 .iko_op_name = #type, \ 223 &ipc_kobject_ops_##type) 250 ipc_kobject_type_t type, 256 ipc_kobject_type_t type, 267 ipc_kobject_type_t type, 274 ipc_kobject_type_t type, 364 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-8792.41.9/iokit/DriverKit/ |
| H A D | queue_implementation.h | 445 #define qe_element(qe, type, field) __container_of(qe, type, field) argument 532 #define qe_dequeue_head(head, type, field) ({ \ argument 534 type *_tmp_element = (type*) NULL; \ 536 _tmp_element = qe_element(_tmp_entry, type, field); \ 541 #define qe_dequeue_tail(head, type, field) ({ \ argument 543 type *_tmp_element = (type*) NULL; \ 545 _tmp_element = qe_element(_tmp_entry, type, field); \ 550 #define qe_queue_first(head, type, field) ({ \ argument 552 type *_tmp_element = (type*) NULL; \ 554 _tmp_element = qe_element(_tmp_entry, type, field); \ [all …]
|
| /xnu-8792.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-8792.41.9/libkern/os/ |
| H A D | cpp_util.h | 26 template <class _T> struct remove_reference {typedef _T type;}; typedef 27 template <class _T> struct remove_reference<_T&> {typedef _T type;}; 28 template <class _T> struct remove_reference<_T &&> {typedef _T type;}; 29 template <class _T> using remove_reference_t = typename remove_reference<_T>::type; 35 template <class _T> struct remove_pointer {typedef _T type;}; 36 template <class _T> struct remove_pointer<_T*> {typedef _T type;}; 37 template <class _T> struct remove_pointer<_T* const> {typedef _T type;}; 38 template <class _T> struct remove_pointer<_T* volatile> {typedef _T type;}; 39 template <class _T> struct remove_pointer<_T* const volatile> {typedef _T type;}; 40 template <class _T> using remove_pointer_t = typename remove_pointer<_T>::type; [all …]
|
| H A D | system_event_log.c | 27 convert_type_to_string(uint8_t type) in convert_type_to_string() argument 29 switch (type) { in convert_type_to_string() 53 _record_system_event_internal(uint8_t type, uint8_t subsystem, const char *event, const char *paylo… in _record_system_event_internal() argument 55 const char *type_string = convert_type_to_string(type); in _record_system_event_internal() 66 record_system_event(uint8_t type, uint8_t subsystem, const char *event, const char *format, ...) in record_system_event() argument 79 _record_system_event_internal(type, subsystem, event, payload); in record_system_event() 83 record_system_event_no_varargs(uint8_t type, uint8_t subsystem, const char *event, const char *payl… in record_system_event_no_varargs() argument 89 _record_system_event_internal(type, subsystem, event, payload); in record_system_event_no_varargs()
|
| /xnu-8792.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-8792.41.9/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-8792.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-8792.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-8792.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))) 680 #define _sk_alloc_type(probename, type, flags, name) \ argument 685 ret = kalloc_type_tag(type, Z_ZERO | (flags), (name)->tag); \ 686 DTRACE_SKYWALK3(probename, char *, #type, int, (flags), \ 697 #define _sk_alloc_type_array(probename, type, count, flags, name) \ argument 701 ret = kalloc_type_tag(type, (count), Z_ZERO | (flags), \ 703 DTRACE_SKYWALK4(probename, char *, #type, size_t, (count), \ 708 #define _sk_realloc_type_array(probename, type, oldcount, newcount, elem, flags, name) \ argument 712 ret = krealloc_type_tag(type, (oldcount), (newcount), (elem), \ [all …]
|
| /xnu-8792.41.9/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-8792.41.9/bsd/net/ |
| H A D | ether_if_module.c | 119 u_int16_t type; /* Type of protocol stored in data */ member 169 desc_blk->block_ptr[current - 1].type = 0; in ether_del_proto() 182 desc_blk->block_ptr[desc_blk->n_max_used - 1].type == 0; in ether_del_proto() 200 switch (demux->type) { in ether_add_proto_internal() 227 switch (demux->type) { in ether_add_proto_internal() 230 if (desc_blk->block_ptr[i].type == in ether_add_proto_internal() 241 if (desc_blk->block_ptr[i].type == in ether_add_proto_internal() 242 demux->type && in ether_add_proto_internal() 290 if (desc_blk->block_ptr[i].type == 0) { in ether_add_proto_internal() 306 switch (demux->type) { in ether_add_proto_internal() [all …]
|