Home
last modified time | relevance | path

Searched refs:current_task (Results 1 – 25 of 131) sorted by relevance

123456

/xnu-11215/osfmk/kern/
H A Dextmod_statistics.c70 extmod_statistics_log(task_t current_task, task_t target);
75 task_t ctask = current_task(); in extmod_statistics_incr_task_for_pid()
91 task_t ctask = current_task(); in extmod_statistics_incr_thread_set_state()
114 task_t ctask = current_task(); in extmod_statistics_incr_thread_create()
130 extmod_statistics_log(task_t current_task, task_t target) in extmod_statistics_log() argument
135 c_proc = get_bsdtask_info(current_task); in extmod_statistics_log()
H A Dipc_tt.c1302 assert(task == current_task()); in retrieve_task_self_fast()
1426 task_t task = current_task(); in task_self_trap()
2721 task_t self = current_task(); in convert_port_to_task_with_flavor()
3165 if (task != current_task()) { in convert_port_to_thread_with_flavor_locked()
3377 task_t task_self = current_task(); in convert_thread_array_to_ports()
3498 task_t self = current_task(); in port_name_to_current_task_internal_noref()
3555 task_t self = current_task(); in port_name_to_task_grp()
3872 assert(task == current_task()); in convert_task_to_port_pinned()
3898 task_t task_self = current_task(); in convert_task_array_to_ports()
4168 if (current_task()) { in set_exception_behavior_allowed()
[all …]
H A Dkern_monotonic.c240 if (kpc_task_get_forced_all_ctrs(current_task())) { in mt_acquire_counters()
245 kpc_force_all_ctrs(current_task(), 1); in mt_acquire_counters()
259 kpc_force_all_ctrs(current_task(), 0); in mt_release_counters()
H A Dtask_ident.c237 if (flavor == TASK_FLAVOR_CONTROL && task == current_task()) { in task_identity_token_get_task_port()
243 task_conversion_eval(current_task(), task, flavor)) { in task_identity_token_get_task_port()
250 if (task != current_task()) { in task_identity_token_get_task_port()
H A Denergy_perf.c111 coalition_t coalition = task_get_coalition(current_task(), in current_energy_id()
129 if (current_task() == kernel_task) { in task_id_token_to_energy_id()
H A Dipc_host.c171 task_t self = current_task(); in host_self_trap()
275 if (port != current_task()->itk_host) { in convert_port_to_host_priv()
514 if (mac_task_check_set_host_exception_ports(current_task(), exception_mask) != 0) { in host_set_exception_ports()
688 if (mac_task_check_set_host_exception_ports(current_task(), exception_mask) != 0) { in host_swap_exception_ports()
H A Dhost.c215 if (sched_allow_NO_SMT_threads && current_task()->t_flags & TF_NO_SMT) { in host_info()
634 if (task_get_platform_binary(current_task())) { in cache_host_statistics()
736 task_t task = current_task(); in rate_limit_host_statistics()
1308 if (task_is_driver(current_task())) { in host_set_special_port_from_user()
1326 if (current_task() != kernel_task && get_bsdtask_info(current_task()) != initproc) { in host_set_special_port()
1328 IOTaskHasEntitlement(current_task(), "com.apple.private.xpc.launchd.event-monitor")); in host_set_special_port()
1340 if (mac_task_check_set_host_special_port(current_task(), id, port) != 0) { in host_set_special_port()
1364 task_t task = current_task(); in host_get_special_port_from_user()
H A Dhv_support_kext.c96 current_task()->hv_task_target = target; in hv_set_task_target()
110 return current_task()->hv_task_target; in hv_get_task_target()
H A Dtask.c932 task_t task = current_task(); in task_wait_to_return()
2996 self_task = current_task(); in task_terminate_internal()
7015 task_t task = current_task(); in PROC_VIOLATED_GUARD__SEND_EXC_GUARD()
7306 task = current_task(); in task_footprint_exceeded()
7548 if (task == current_task()) { in task_set_phys_footprint_limit_internal()
7619 if (task == current_task()) { in task_set_diag_footprint_limit_internal()
7862 current_task(void) in current_task() function
9139 curtask = current_task(); in task_self_region_footprint_set()
9162 curtask = current_task(); in task_self_region_info_flags_set()
9841 task = current_task(); in task_set_tecs()
[all …]
H A Darcade.c337 task_terminate_internal(current_task()); in arcade_ast()
349 task_terminate_internal(current_task()); in arcade_ast()
H A Dexclaves_conclave.c283 task = current_task();
402 task = current_task();
H A Dexception.c696 task_t task = current_task(); in check_exc_receiver_dependency()
810 task_t task = current_task(); in pac_exception_triage()
877 task_t task = current_task(); in exception_triage()
925 task = current_task(); in bsd_exception()
H A Dtestpoints.c85 if (tp_pid != pid_from_task(current_task())) { in tp_call()
/xnu-11215/security/
H A Dmac_mach.c59 if (task == current_task()) { in mac_task_get_proc()
145 assert(task == current_task()); in mac_task_check_set_host_special_port()
158 assert(task == current_task()); in mac_task_check_set_host_exception_port()
174 assert(task == current_task()); in mac_task_check_get_task_special_port()
200 assert(task == current_task()); in mac_task_check_set_task_special_port()
229 assert(task == current_task()); in mac_task_check_set_task_exception_ports()
265 assert(task == current_task()); in mac_task_check_set_thread_exception_ports()
312 assert(task == current_task()); in mac_task_check_set_host_exception_ports()
/xnu-11215/osfmk/ipc/
H A Dmach_kernelrpc.c643 kr = task_info(current_task(), TASK_DYLD_INFO, (task_info_t)&dyld_info, &info_count); in task_dyld_process_info_notify_get_trap()
657 itk_lock(current_task()); in task_dyld_process_info_notify_get_trap()
659 if (current_task()->itk_dyld_notify == NULL) { in task_dyld_process_info_notify_get_trap()
660 itk_unlock(current_task()); in task_dyld_process_info_notify_get_trap()
661 (void)copyoutmap_atomic32(current_task()->map, MACH_PORT_NULL, in task_dyld_process_info_notify_get_trap()
671 portp = &current_task()->itk_dyld_notify[slot]; in task_dyld_process_info_notify_get_trap()
686 task_dyld_process_info_update_helper(current_task(), active_count, in task_dyld_process_info_notify_get_trap()
H A Dmach_port.c2113 release_imp_task = current_task()->task_imp_base; in mach_port_set_attributes()
2465 boolean_t hard = task_get_control_port_options(current_task()) & TASK_CONTROL_PORT_IMMOVABLE_HARD; in mach_port_guard_exception_immovable()
2468 assert(task_is_immovable(current_task())); in mach_port_guard_exception_immovable()
2494 boolean_t hard = task_get_control_port_options(current_task()) & TASK_CONTROL_PORT_PINNED_HARD; in mach_port_guard_exception_pinned()
2496 assert(task_is_pinned(current_task())); in mach_port_guard_exception_pinned()
2522 assert(task == current_task()); in mach_port_guard_ast()
2687 if (proc_get_effective_task_policy(current_task(), in mach_port_construct()
2713 if (!task_is_in_privileged_coalition(current_task(), COALITION_TYPE_JETSAM)) { in mach_port_construct()
2720 if (proc_isinitproc(get_bsdtask_info(current_task()))) { in mach_port_construct()
2726 if (task_has_64Bit_addr(current_task())) { in mach_port_construct()
/xnu-11215/bsd/kern/
H A Dprocess_policy.c425 error = proc_lf_pidbind(current_task(), target_threadid, proc_task(proc), state); in handle_applifecycle()
481 error = task_importance_hold_legacy_external_assertion(current_task(), 1); in handle_apptype()
494 error = task_importance_drop_legacy_external_assertion(current_task(), 1); in handle_apptype()
533 error = task_importance_hold_legacy_external_assertion(current_task(), 1); in handle_boost()
537 error = task_importance_drop_legacy_external_assertion(current_task(), 1); in handle_boost()
/xnu-11215/iokit/Tests/TestServices/
H A DTestIODeviceMemoryRosetta.cpp96 …map = deviceMemory->createMappingInTask(current_task(), 0, kIOMapAnywhere, userClientArgs->offset,… in externalMethodDispatched()
102 mach_port_name_t name __unused = iokit_make_send_right(current_task(), map, IKOT_IOKIT_OBJECT); in externalMethodDispatched()
/xnu-11215/osfmk/i386/
H A Duser_ldt.c107 task_t task = current_task(); in i386_set_ldt_impl()
311 task_t task = current_task(); in i386_get_ldt_impl()
388 if (arg_task == current_task()) { in user_ldt_set_action()
/xnu-11215/tests/
H A Dvm_set_max_addr_helper.c11 kr = mach_vm_allocate(current_task(), &addr, 4096, VM_FLAGS_FIXED); in main()
/xnu-11215/osfmk/bank/
H A Dbank.c351 if (!bank_task_is_persona_modify_entitled(current_task())) { in bank_get_value()
433 task = current_task(); in bank_get_value()
503 task = current_task(); in bank_get_value()
595 task = current_task(); in bank_get_value()
670 bank_element = CAST_TO_BANK_ELEMENT(get_bank_task_context(current_task(), FALSE)); in bank_extract_content()
756 bank_element = CAST_TO_BANK_ELEMENT(get_bank_task_context(current_task(), FALSE)); in bank_command()
791 bank_element = CAST_TO_BANK_ELEMENT(get_bank_task_context(current_task(), FALSE)); in bank_command()
857 task = current_task(); in bank_command()
1676 bank_element = CAST_TO_BANK_ELEMENT(get_bank_task_context(current_task(), FALSE)); in bank_get_voucher_bank_account()
1779 bank_element = CAST_TO_BANK_ELEMENT(get_bank_task_context(current_task(), FALSE)); in bank_get_preadopt_thread_group()
[all …]
/xnu-11215/libsyscall/mach/mach/
H A Dmach_init.h84 #define current_task() mach_task_self() macro
/xnu-11215/iokit/Families/IOSystemManagement/
H A DIOWatchDogTimer.cpp88 result = IOUserClient::clientHasPrivilege(current_task(), in setProperties()
/xnu-11215/iokit/Kernel/
H A DIOUserClient.cpp1430 if (task_is_gpu_denied(current_task())) { in clientHasPrivilege()
1444 task = current_task(); in clientHasPrivilege()
1552 task = current_task(); in copyClientEntitlement()
4351 assert(owningTask == current_task()); in is_io_service_open_extended()
4352 if (owningTask != current_task()) { in is_io_service_open_extended()
4689 || (into_task != current_task())) { in is_io_connect_map_memory_into_task()
4935 current_task()); in is_io_connect_method_var_output()
5050 current_task()); in is_io_connect_method()
5063 kIODirectionIn, current_task()); in is_io_connect_method()
5166 current_task()); in is_io_connect_async_method()
[all …]
/xnu-11215/iokit/Tests/
H A DTestIOMemoryDescriptor.cpp425 bmd = IOBufferMemoryDescriptor::inTaskWithOptions(current_task(), in IOMemoryPrefaultTest()
471 map = bmd->createMappingInTask(current_task(), 0, kIOMapAnywhere, 0, 0); in IOBMDSetLengthMapTest()
476 map = bmd->createMappingInTask(current_task(), 0, kIOMapAnywhere, 0, 0); in IOBMDSetLengthMapTest()
492 0, 0, kIODirectionNone, current_task()); in ZeroLengthTest()
547 bmd = IOBufferMemoryDescriptor::inTaskWithOptions(current_task(), in IOMemoryMapTest()
567 current_task()); in IOMemoryMapTest()

123456