Lines Matching defs:task
190 struct task { struct
201 bool ipc_active; /* IPC with the task ports is allowed */ argument
210 uint64_t task_uniqueid; argument
213 vm_map_t XNU_PTRAUTH_SIGNED_PTR("task.map") map; /* Address space description */ argument
214 queue_chain_t tasks; /* global list of tasks */ argument
215 struct task_watchports *watchports; /* watchports passed in spawn */ argument
216 turnstile_inheritor_t returnwait_inheritor; /* inheritor for task_wait */ argument
229 struct task_suspend_stats_s t_suspend_stats; /* suspension statistics for this task */ argument
230 task_suspend_source_array_t t_suspend_sources; /* array of suspender debug info for this task */ argument
242 #define task_is_immovable(task) \ argument
244 #define task_is_pinned(task) \ argument
250 struct recount_task tk_recount; argument
255 * Different flavors of task port. argument
267 …struct ipc_port * XNU_PTRAUTH_SIGNED_PTR("task.itk_host") itk_host; /* a send … argument
280 ledger_t ledger;
282 queue_head_t semaphore_list; /* list of owned semaphores */
283 int semaphores_owned; /* number of semaphores owned */
307 queue_chain_t corpse_tasks; argument
311 …volatile uint32_t t_flags; /* general-purpose task flags prot… argument
364 #define task_has_64Bit_addr(task) \ argument
366 #define task_set_64Bit_addr(task) \ argument
368 #define task_clear_64Bit_addr(task) \ argument
374 #define task_has_64Bit_data(task) \ argument
376 #define task_set_64Bit_data(task) \ argument
378 #define task_clear_64Bit_data(task) \ argument
381 #define task_corpse_pending_report(task) \ argument
384 #define task_set_corpse_pending_report(task) \ argument
387 #define task_clear_corpse_pending_report(task) \ argument
390 #define task_is_a_corpse_fork(task) \ argument
393 #define task_set_coalition_member(task) \ argument
396 #define task_clear_coalition_member(task) \ argument
399 #define task_is_coalition_member(task) \ argument
402 #define task_has_proc(task) \ argument
405 #define task_set_has_proc(task) \ argument
408 #define task_clear_has_proc(task) \ argument
411 #define task_has_reply_port_telemetry(task) \ argument
414 #define task_set_reply_port_telemetry(task) \ argument
417 …uint32_t t_procflags; /* general-purpose task flags pro… argument
422 #define task_did_exec_internal(task) \ argument
425 #define task_is_exec_copy_internal(task) \ argument
432 #define TASK_KPC_FORCED_ALL_CTRS 0x2 /* Bit in "t_kpc" signifying this task forced all c… argument
448 int8_t suspends_outstanding; /* suspends this task performed in excess of resumes */ argument
452 #define TRW_LRETURNWAIT 0x01 /* task is waiting for fork/posix_spawn/exec to com… argument
474 queue_head_t task_watchers; /* app state watcher threads */ argument
475 int num_taskwatchers; argument
479 struct bank_task *bank_context; /* pointer to per task bank structure */ argument
482 struct ipc_importance_task *task_imp_base; /* Base of IPC importance chain */ argument
487 struct task_requested_policy requested_policy; argument
488 struct task_effective_policy effective_policy; argument
490 struct task_pend_token pended_coalition_changes; argument
495 … low_mem_notified_warn :1, /* warning low memory notification is sent to the task */ argument
496 …ified_critical :1, /* critical low memory notification is sent to the task */ argument
497 …purged_memory_warn :1, /* purgeable memory of the task is purged for … argument
498 …purged_memory_critical :1, /* purgeable memory of the task is purged for … argument
499 …low_mem_privileged_listener :1, /* if set, task would like to know about press… argument
503 …tal :1, /* if set, exceeding current memlimit will prove fatal to the task */ argument
504 …c_resource :1, /* if set, suppress exc_resource exception when task exceeds active memo… argument
505 …exc_resource :1, /* if set, suppress exc_resource exception when task exceeds inactive me… argument
508 io_stat_info_t task_io_stats; argument
510 struct task_writes_counters task_writes_counters_internal; argument
511 struct task_writes_counters task_writes_counters_external; argument
514 * The cpu_time_qos_stats fields are protected by the task lock argument
519 /* Statistics accumulated for terminated threads from this task */ argument
520 uint32_t task_timer_wakeups_bin_1; argument
521 uint32_t task_timer_wakeups_bin_2; argument
522 uint64_t task_gpu_ns; argument
524 uint8_t task_can_transfer_memory_ownership; argument
526 uint8_t task_no_footprint_for_debug; argument
528 uint8_t task_objects_disowning; argument
529 uint8_t task_objects_disowned; argument
531 int task_volatile_objects; argument
533 int task_nonvolatile_objects; argument
534 int task_owned_objects; argument
535 queue_head_t task_objq; argument
538 unsigned int task_thread_limit:16; argument
540 unsigned int task_legacy_footprint:1; argument
541 unsigned int task_extra_footprint_limit:1; argument
542 unsigned int task_ios13extended_footprint_limit:1; argument
544 unsigned int task_region_footprint:1; argument
545 unsigned int task_region_info_flags:1; argument
546 unsigned int task_has_crossed_thread_limit:1; argument
547 unsigned int task_rr_in_flight:1; /* a t_rr_synchronzie() is in flight */ argument
556 queue_chain_t task_coalition[COALITION_NUM_TYPES]; argument
560 boolean_t task_unnested; argument
561 int task_disconnected_count; argument
565 …void * XNU_PTRAUTH_SIGNED_PTR("task.hv_task_target") hv_task_target; /* hypervisor virtual machine… argument
569 uint8_t task_can_use_secluded_mem; argument
570 uint8_t task_could_use_secluded_mem; argument
571 uint8_t task_could_also_use_secluded_mem; argument
572 uint8_t task_suppressed_secluded; argument
575 task_exc_guard_behavior_t task_exc_guard; argument
581 queue_head_t task_frozen_cseg_q; /* queue of csegs frozen to NAND */ argument
584 uint32_t task_shared_region_slide; /* cached here to avoid locking during telemetry */ argument
586 uint64_t task_fs_metadata_writes; argument
588 uuid_t task_shared_region_uuid; argument
590 …rty_start; /* last abstime transition into the dirty band or last call to task_ledger_settle_dirty… argument
595 vm_deferred_reclamation_metadata_t deferred_reclamation_metadata; /* Protected by the task lock */ argument
608 extern task_control_port_options_t task_get_control_port_options(task_t task); argument
620 task_require(struct task *task) in task_require()
625 #define task_lock(task) lck_mtx_lock(&(task)->lock) argument
626 #define task_lock_assert_owned(task) LCK_MTX_ASSERT(&(task)->lock, LCK_MTX_ASSERT_OWNED) argument
627 #define task_lock_try(task) lck_mtx_try_lock(&(task)->lock) argument
628 #define task_unlock(task) lck_mtx_unlock(&(task)->lock) argument
630 #define task_objq_lock_init(task) lck_mtx_init(&(task)->task_objq_lock, &vm_object_lck_grp, &… argument
631 #define task_objq_lock_destroy(task) lck_mtx_destroy(&(task)->task_objq_lock, &vm_object_lck_grp) argument
632 #define task_objq_lock(task) lck_mtx_lock(&(task)->task_objq_lock) argument
633 #define task_objq_lock_assert_owned(task) LCK_MTX_ASSERT(&(task)->task_objq_lock, LCK_MTX_ASS… argument
634 #define task_objq_lock_try(task) lck_mtx_try_lock(&(task)->task_objq_lock) argument
635 #define task_objq_unlock(task) lck_mtx_unlock(&(task)->task_objq_lock) argument
637 #define itk_lock_init(task) lck_mtx_init(&(task)->itk_lock_data, &ipc_lck_grp, &ipc_lck_attr) argument
638 #define itk_lock_destroy(task) lck_mtx_destroy(&(task)->itk_lock_data, &ipc_lck_grp) argument
639 #define itk_lock(task) lck_mtx_lock(&(task)->itk_lock_data) argument
640 #define itk_unlock(task) lck_mtx_unlock(&(task)->itk_lock_data) argument
681 #define task_watchport_elem_init(elem, task, port) \ argument