Home
last modified time | relevance | path

Searched refs:kotype (Results 1 – 17 of 17) sorted by relevance

/xnu-11215/osfmk/kern/
H A Dipc_kobject.h306 ipc_kobject_type_t kotype) __result_use_check;
333 ipc_kobject_type_t kotype) __result_use_check;
361 ipc_kobject_type_t kotype) __result_use_check;
366 ipc_kobject_type_t kotype) __result_use_check;
405 ipc_kobject_type_t kotype);
H A Dtask_ident.c89 int kotype = ip_kotype(port); in tidt_release() local
90 if (kotype == IKOT_TASK_ID_TOKEN || kotype == IKOT_TASK_FATAL) { in tidt_release()
91 ipc_kobject_dealloc_port(port, 0, kotype); in tidt_release()
94 __func__, port, kotype); in tidt_release()
H A Dipc_kobject.c858 ipc_kobject_type_t kotype) in ipc_kobject_require_panic() argument
860 if (ip_kotype(port) != kotype) { in ipc_kobject_require_panic()
862 port, ip_kotype(port), kotype); in ipc_kobject_require_panic()
872 ipc_kobject_type_t kotype) in ipc_kobject_require() argument
879 cur = ipc_kobject_get_raw(port, kotype); in ipc_kobject_require()
1273 ipc_kobject_type_t kotype) in ipc_kobject_copy_send() argument
1280 ipc_kobject_require(port, kobject, kotype); in ipc_kobject_copy_send()
1295 ipc_kobject_type_t kotype) in ipc_kobject_make_send() argument
1317 ipc_kobject_type_t kotype) in ipc_kobject_make_send_nsrequest() argument
1339 ipc_kobject_type_t kotype) in ipc_kobject_make_send_nsrequest_locked() argument
[all …]
H A Dipc_host.c373 ipc_kobject_type_t kotype = ip_kotype(port); in host_port_copy_send() local
375 if (kotype == IKOT_HOST) { in host_port_copy_send()
378 } else if (kotype == IKOT_HOST_PRIV) { in host_port_copy_send()
382 } else if (kotype == IKOT_NONE && in host_port_copy_send()
H A Dipc_tt.c1795 ipc_kobject_type_t kotype; in thread_get_special_port_from_user() local
1806 kotype = ip_kotype(port); in thread_get_special_port_from_user()
1825 switch (kotype) { in thread_get_special_port_from_user()
2094 ipc_kobject_type_t kotype; in task_get_special_port_from_user() local
2104 kotype = ip_kotype(port); in task_get_special_port_from_user()
2130 switch (kotype) { in task_get_special_port_from_user()
2585 natural_t kotype, in task_port_kotype_valid_for_flavor() argument
2591 if (kotype == IKOT_TASK_NAME) { in task_port_kotype_valid_for_flavor()
3094 natural_t kotype, in thread_port_kotype_valid_for_flavor() argument
3764 task, kotype); in convert_task_to_port_with_flavor()
[all …]
H A Dthread.c3958 ipc_kobject_type_t kotype; in thread_port_with_flavor_no_senders() local
3965 kotype = ip_kotype(port); in thread_port_with_flavor_no_senders()
3966 assert((IKOT_THREAD_READ == kotype) || (IKOT_THREAD_INSPECT == kotype)); in thread_port_with_flavor_no_senders()
3967 thread = ipc_kobject_get_locked(port, kotype); in thread_port_with_flavor_no_senders()
3978 if (kotype == IKOT_THREAD_READ) { in thread_port_with_flavor_no_senders()
4014 ipc_kobject_dealloc_port_and_unlock(port, 0, kotype); in thread_port_with_flavor_no_senders()
H A Dtask.c2700 ipc_kobject_type_t kotype; in task_port_with_flavor_no_senders() local
2707 kotype = ip_kotype(port); in task_port_with_flavor_no_senders()
2708 assert((IKOT_TASK_READ == kotype) || (IKOT_TASK_INSPECT == kotype)); in task_port_with_flavor_no_senders()
2709 task = ipc_kobject_get_locked(port, kotype); in task_port_with_flavor_no_senders()
2720 if (kotype == IKOT_TASK_READ) { in task_port_with_flavor_no_senders()
2755 ipc_kobject_dealloc_port_and_unlock(port, 0, kotype); in task_port_with_flavor_no_senders()
3941 ipc_kobject_type_t kotype; in task_threads_from_user() local
3950 kotype = ip_kotype(port); in task_threads_from_user()
3952 switch (kotype) { in task_threads_from_user()
/xnu-11215/tests/ipc/
H A Dipc_read_inspect.c162 unsigned int kotype; in test_task_threads() local
184 kr = mach_port_kernel_object(mach_task_self(), threadList[i], &kotype, &kaddr); in test_task_threads()
194 …T_QUIET; T_EXPECT_EQ(kotype, IKOT_THREAD_CONTROL, "Task control port should yield thread control p… in test_task_threads()
197 T_QUIET; T_EXPECT_EQ(kotype, IKOT_THREAD_READ, "Task read port should yield thread read port"); in test_task_threads()
200 …T_QUIET; T_EXPECT_EQ(kotype, IKOT_THREAD_INSPECT, "Task inspect port should yield thread inspect p… in test_task_threads()
226 unsigned int kotype; in test_processor_set_tasks() local
248 kr = mach_port_kernel_object(mach_task_self(), taskList[i], &kotype, &kaddr); in test_processor_set_tasks()
258 … T_QUIET; T_EXPECT_EQ(kotype, IKOT_TASK_CONTROL, "TASK_FLAVOR_CONTROL should yield control ports"); in test_processor_set_tasks()
261 T_QUIET; T_EXPECT_EQ(kotype, IKOT_TASK_READ, "TASK_FLAVOR_READ should yield read ports"); in test_processor_set_tasks()
264 … T_QUIET; T_EXPECT_EQ(kotype, IKOT_TASK_INSPECT, "TASK_FLAVOR_INSPECT should yield inspect ports"); in test_processor_set_tasks()
[all …]
/xnu-11215/tests/
H A Dextract_right_soft_fail.c46 unsigned int kotype = 0, kobject = 0; in test_extract_immovable_task_port() local
54 kr = mach_port_kernel_object(tport, table[i].iin_name, &kotype, &kobject); in test_extract_immovable_task_port()
55 if (KERN_SUCCESS == kr && kotype == IKOT_TASK_CONTROL) { in test_extract_immovable_task_port()
H A Dimm_pinned_control_port_crasher.c358 natural_t kotype; in cfi_test_msg_to_timer_port() local
366 kr = mach_port_kobject(mach_task_self(), timer, &kotype, &addr); in cfi_test_msg_to_timer_port()
368 assert(kotype == IKOT_TIMER); in cfi_test_msg_to_timer_port()
H A Dexception_ports_info.c34 unsigned int kotype = 0, kobject = 0, exc_port3_kotype = 0, exc_port3_kaddr = 0; variable
126 kr = mach_port_kernel_object(mach_task_self(), mach_task_self(), &kotype, &kobject);
/xnu-11215/tests/iokit/
H A Dport_object_description_race_77259918.c53 unsigned int kotype = 0; in iokit_port_object_description_thread() local
62 (void)mach_port_kobject_description(mach_task_self(), port, &kotype, &kaddr, desc); in iokit_port_object_description_thread()
/xnu-11215/osfmk/ipc/
H A Dipc_policy.c641 natural_t kotype = ip_kotype(port); in ipc_validate_kmsg_dest_from_user() local
643 if (__improbable(kotype == IKOT_TIMER)) { in ipc_validate_kmsg_dest_from_user()
658 } else if (kotype == IKOT_UEXT_OBJECT) { in ipc_validate_kmsg_dest_from_user()
H A Dmach_port.c742 ipc_kobject_type_t kotype) in mach_port_deallocate_kernel() argument
762 if (kotype != IKOT_UNKNOWN && io_kotype(entry->ie_object) != kotype) { in mach_port_deallocate_kernel()
H A Dipc_port.h966 natural_t kotype);
H A Dipc_kmsg.c5551 int kotype = 0; in ipc_kmsg_trace_send() local
5681 kotype = ip_kotype(dst_port); in ipc_kmsg_trace_send()
5685 switch (kotype) { in ipc_kmsg_trace_send()
/xnu-11215/osfmk/vm/
H A Dvm_protos.h67 natural_t kotype);