Searched refs:task (Results 1 - 25 of 211) sorted by relevance

123456789

/xnu-2422.115.4/libsyscall/mach/
H A Dtask.defs28 #include <mach/task.defs>
H A Dmach_port.c36 ipc_space_t task,
44 rv = _kernelrpc_mach_port_names(task, names, namesCnt, types,
52 ipc_space_t task,
58 rv = _kernelrpc_mach_port_type(task, name, ptype);
65 ipc_space_t task,
71 rv = _kernelrpc_mach_port_rename(task, old_name, new_name);
78 ipc_space_t task,
84 rv = _kernelrpc_mach_port_allocate_name(task, right, name);
91 ipc_space_t task,
97 rv = _kernelrpc_mach_port_allocate_trap(task, righ
35 mach_port_names( ipc_space_t task, mach_port_name_array_t *names, mach_msg_type_number_t *namesCnt, mach_port_type_array_t *types, mach_msg_type_number_t *typesCnt) argument
51 mach_port_type( ipc_space_t task, mach_port_name_t name, mach_port_type_t *ptype) argument
64 mach_port_rename( ipc_space_t task, mach_port_name_t old_name, mach_port_name_t new_name) argument
77 mach_port_allocate_name( ipc_space_t task, mach_port_right_t right, mach_port_name_t name) argument
90 mach_port_allocate( ipc_space_t task, mach_port_right_t right, mach_port_name_t *name) argument
106 mach_port_destroy( ipc_space_t task, mach_port_name_t name) argument
121 mach_port_deallocate( ipc_space_t task, mach_port_name_t name) argument
136 mach_port_get_refs( ipc_space_t task, mach_port_name_t name, mach_port_right_t right, mach_port_urefs_t *refs) argument
150 mach_port_mod_refs( ipc_space_t task, mach_port_name_t name, mach_port_right_t right, mach_port_delta_t delta) argument
167 mach_port_peek( ipc_space_t task, mach_port_name_t name, mach_msg_trailer_type_t trailer_type, mach_port_seqno_t *seqnop, mach_msg_size_t *msg_sizep, mach_msg_id_t *msg_idp, mach_msg_trailer_info_t trailer_infop, mach_msg_type_number_t *trailer_sizep) argument
187 mach_port_set_mscount( ipc_space_t task, mach_port_name_t name, mach_port_mscount_t mscount) argument
200 mach_port_get_set_status( ipc_space_t task, mach_port_name_t name, mach_port_name_array_t *members, mach_msg_type_number_t *membersCnt) argument
215 mach_port_move_member( ipc_space_t task, mach_port_name_t member, mach_port_name_t after) argument
231 mach_port_request_notification( ipc_space_t task, mach_port_name_t name, mach_msg_id_t msgid, mach_port_mscount_t sync, mach_port_t notify, mach_msg_type_name_t notifyPoly, mach_port_t *previous) argument
249 mach_port_insert_right( ipc_space_t task, mach_port_name_t name, mach_port_t poly, mach_msg_type_name_t polyPoly) argument
267 mach_port_extract_right( ipc_space_t task, mach_port_name_t name, mach_msg_type_name_t msgt_name, mach_port_t *poly, mach_msg_type_name_t *polyPoly) argument
283 mach_port_set_seqno( ipc_space_t task, mach_port_name_t name, mach_port_seqno_t seqno) argument
296 mach_port_get_attributes( ipc_space_t task, mach_port_name_t name, mach_port_flavor_t flavor, mach_port_info_t port_info_out, mach_msg_type_number_t *port_info_outCnt) argument
312 mach_port_set_attributes( ipc_space_t task, mach_port_name_t name, mach_port_flavor_t flavor, mach_port_info_t port_info, mach_msg_type_number_t port_infoCnt) argument
328 mach_port_allocate_qos( ipc_space_t task, mach_port_right_t right, mach_port_qos_t *qos, mach_port_name_t *name) argument
342 mach_port_allocate_full( ipc_space_t task, mach_port_right_t right, mach_port_t proto, mach_port_qos_t *qos, mach_port_name_t *name) argument
357 task_set_port_space( ipc_space_t task, int table_entries) argument
369 mach_port_get_srights( ipc_space_t task, mach_port_name_t name, mach_port_rights_t *srights) argument
382 mach_port_space_info( ipc_space_t task, ipc_info_space_t *space_info, ipc_info_name_array_t *table_info, mach_msg_type_number_t *table_infoCnt, ipc_info_tree_name_array_t *tree_info, mach_msg_type_number_t *tree_infoCnt) argument
399 mach_port_dnrequest_info( ipc_space_t task, mach_port_name_t name, unsigned *dnr_total, unsigned *dnr_used) argument
414 mach_port_kernel_object( ipc_space_t task, mach_port_name_t name, unsigned *object_type, unsigned *object_addr) argument
429 mach_port_insert_member( ipc_space_t task, mach_port_name_t name, mach_port_name_t pset) argument
445 mach_port_extract_member( ipc_space_t task, mach_port_name_t name, mach_port_name_t pset) argument
461 mach_port_get_context( ipc_space_t task, mach_port_name_t name, mach_port_context_t *context) argument
479 mach_port_set_context( ipc_space_t task, mach_port_name_t name, mach_port_context_t context) argument
492 mach_port_kobject( ipc_space_t task, mach_port_name_t name, natural_t *object_type, mach_vm_address_t *object_addr) argument
506 mach_port_construct( ipc_space_t task, mach_port_options_t *options, mach_port_context_t context, mach_port_name_t *name) argument
523 mach_port_destruct( ipc_space_t task, mach_port_name_t name, mach_port_delta_t srdelta, mach_port_context_t guard) argument
541 mach_port_guard( ipc_space_t task, mach_port_name_t name, mach_port_context_t guard, boolean_t strict) argument
559 mach_port_unguard( ipc_space_t task, mach_port_name_t name, mach_port_context_t guard) argument
[all...]
H A Dexc_catcher.c46 mach_port_t task,
61 return (*exc_raise_func)(exception_port, thread, task, exception, code, codeCnt);
64 return catch_exception_raise(exception_port, thread, task, exception, code, codeCnt);
43 internal_catch_exception_raise( mach_port_t exception_port, mach_port_t thread, mach_port_t task, exception_type_t exception, exception_data_t code, mach_msg_type_number_t codeCnt) argument
/xnu-2422.115.4/osfmk/mach/
H A Dtask_special_ports.h61 * Defines codes for special_purpose task ports. These are NOT
72 #define TASK_KERNEL_PORT 1 /* Represents task to the outside
75 #define TASK_HOST_PORT 2 /* The host (priv) port for task. */
77 #define TASK_NAME_PORT 3 /* the name (unpriv) port for task */
79 #define TASK_BOOTSTRAP_PORT 4 /* Bootstrap environment for task. */
85 #define TASK_SEATBELT_PORT 7 /* Seatbelt compiler/DEM port for task. */
96 #define task_get_kernel_port(task, port) \
97 (task_get_special_port((task), TASK_KERNEL_PORT, (port)))
99 #define task_set_kernel_port(task, port) \
100 (task_set_special_port((task), TASK_KERNEL_POR
[all...]
H A Dmach_port.defs81 * to which the target task has access, along with
86 task : ipc_space_t;
92 * within the target task. Also indicates whether
97 task : ipc_space_t;
103 * the target task. The new name can't be in use. The
111 task : ipc_space_t;
128 task : ipc_space_t;
143 task : ipc_space_t;
155 task : ipc_space_t;
161 * correct type of right. This allows a user task
[all...]
H A Dtask.defs69 task 3400;
76 * Create a new task with an empty set of IPC rights,
78 * target task (or empty, if inherit_memory is FALSE).
87 * Destroy the target task, causing all of its threads
95 * Returns the set of threads belonging to the target task.
102 * Stash a handful of ports for the target task; child
111 * Retrieve the stashed ports for the target task.
119 * Returns information about the target task.
127 * Set task information.
135 * Increment the suspend count for the target task
[all...]
H A Dexc.defs81 task : mach_port_move_send_t;
85 task : mach_port_t;
107 task : mach_port_move_send_t;
111 task : mach_port_t;
/xnu-2422.115.4/osfmk/ipc/
H A Dmach_kernelrpc.c34 #include <kern/task.h>
42 task_t task = port_name_to_task(args->target); local
45 if (task != current_task())
51 rv = mach_vm_allocate(task->map, &addr, args->size, args->flags);
56 if (task)
57 task_deallocate(task);
64 task_t task = port_name_to_task(args->target); local
67 if (task != current_task())
70 rv = mach_vm_deallocate(task->map, args->address, args->size);
73 if (task)
81 task_t task = port_name_to_task(args->target); local
100 task_t task = port_name_to_task(args->target); local
124 task_t task = port_name_to_task(args->target); local
145 task_t task = port_name_to_task(args->target); local
162 task_t task = port_name_to_task(args->target); local
179 task_t task = port_name_to_task(args->target); local
197 task_t task = port_name_to_task(args->target); local
214 task_t task = port_name_to_task(args->target); local
239 task_t task = port_name_to_task(args->target); local
257 task_t task = port_name_to_task(args->target); local
274 task_t task = port_name_to_task(args->target); local
300 task_t task = port_name_to_task(args->target); local
317 task_t task = port_name_to_task(args->target); local
334 task_t task = port_name_to_task(args->target); local
[all...]
/xnu-2422.115.4/osfmk/i386/
H A Dmachine_task.c57 #include <kern/task.h>
65 task_t task,
74 if ((task_has_64BitAddr(task)) ||
80 if (task->task_debug == NULL) {
81 task->task_debug = zalloc(ids_zone);
84 copy_debug_state32(tstate, (x86_debug_state32_t*) task->task_debug, FALSE);
93 if ((!task_has_64BitAddr(task)) ||
99 if (task->task_debug == NULL) {
100 task->task_debug = zalloc(ids_zone);
103 copy_debug_state64(tstate, (x86_debug_state64_t*) task
64 machine_task_set_state( task_t task, int flavor, thread_state_t state, mach_msg_type_number_t state_count) argument
154 machine_task_get_state(task_t task, int flavor, thread_state_t state, mach_msg_type_number_t *state_count) argument
237 machine_task_terminate(task_t task) argument
[all...]
/xnu-2422.115.4/osfmk/kern/
H A Dtask.c57 * File: kern/task.c
109 #include <kern/task.h>
197 * (ie when the task's wakeups rate exceeds 70% of the limit, start taking user
203 int task_wakeups_monitor_rate; /* In hz. Maximum allowable wakeups per task before EXC_RESOURCE is sent */
209 int max_task_footprint = 0; /* Per-task limit on physical memory consumption */
227 task_t task);
229 task_t task,
232 task_t task);
234 task_t task );
236 task_t task);
242 task_backing_store_privileged( task_t task) argument
253 task_set_64bit( task_t task, boolean_t is64bit) argument
293 task_set_dyld_info(task_t task, mach_vm_address_t addr, mach_vm_size_t size) argument
323 task_reference_internal(task_t task) argument
336 task_deallocate_internal(task_t task) argument
811 task_deallocate( task_t task) argument
927 task_terminate( task_t task) argument
940 task_terminate_internal( task_t task) argument
1087 task_start_halt( task_t task) argument
1148 task_complete_halt(task_t task) argument
1206 task_hold_locked( register task_t task) argument
1238 task_hold( register task_t task) argument
1259 task_wait( task_t task, boolean_t until_not_runnable) argument
1289 task_wait_locked( register task_t task, boolean_t until_not_runnable) argument
1319 task_release_locked( register task_t task) argument
1346 task_release( task_t task) argument
1367 task_threads( task_t task, thread_act_array_t *threads_out, mach_msg_type_number_t *count) argument
1481 place_task_hold( register task_t task, int mode) argument
1522 release_task_hold( register task_t task, int mode) argument
1600 task_suspend( register task_t task) argument
1674 task_resume( register task_t task) argument
1720 task_suspend_internal(task_t task) argument
1738 task_suspend2( register task_t task, task_suspension_token_t *suspend_token) argument
1766 task_resume_internal( register task_suspension_token_t task) argument
1784 task_resume2( register task_suspension_token_t task) argument
1799 task_t task = convert_port_to_task_suspension_token(port); local
1850 task_pidsuspend_locked(task_t task) argument
1879 task_pidsuspend( register task_t task) argument
1907 task_pidresume( register task_t task) argument
1969 task_freeze( register task_t task, uint32_t *purgeable_count, uint32_t *wired_count, uint32_t *clean_count, uint32_t *dirty_count, uint32_t dirty_budget, boolean_t *shared, boolean_t walk_only) argument
2032 task_thaw( register task_t task) argument
2085 host_security_set_task_token( host_security_t host_security, task_t task, security_token_t sec_token, audit_token_t audit_token, host_priv_t host_priv) argument
2126 task_set_info( task_t task, task_flavor_t flavor, __unused task_info_t task_info_in, __unused mach_msg_type_number_t task_info_count) argument
2143 task_info( task_t task, task_flavor_t flavor, task_info_t task_info_out, mach_msg_type_number_t *task_info_count) argument
2766 task_power_info_locked( task_t task, task_power_info_t info) argument
2816 task_purgable_info( task_t task, task_purgable_info_t *stats) argument
2831 task_vtimer_set( task_t task, integer_t which) argument
2886 task_vtimer_clear( task_t task, integer_t which) argument
2900 task_vtimer_update( __unused task_t task, integer_t which, uint32_t *microsecs) argument
2957 task_assign( __unused task_t task, __unused processor_set_t new_pset, __unused boolean_t assign_threads) argument
2971 task_assign_default( task_t task, boolean_t assign_threads) argument
2984 task_get_assignment( task_t task, processor_set_t *pset) argument
3005 task_policy( __unused task_t task, __unused policy_t policy_id, __unused policy_base_t base, __unused mach_msg_type_number_t count, __unused boolean_t set_limit, __unused boolean_t change) argument
3025 task_set_policy( __unused task_t task, __unused processor_set_t pset, __unused policy_t policy_id, __unused policy_base_t base, __unused mach_msg_type_number_t base_count, __unused policy_limit_t limit, __unused mach_msg_type_number_t limit_count, __unused boolean_t change) argument
3040 task_set_ras_pc( task_t task, vm_offset_t pc, vm_offset_t endpc) argument
3059 task_set_ras_pc( __unused task_t task, __unused vm_offset_t pc, __unused vm_offset_t endpc) argument
3069 task_synchronizer_destroy_all(task_t task) argument
3090 task_set_state( task_t task, int flavor, thread_state_t state, mach_msg_type_number_t state_count) argument
3121 task_get_state( task_t task, int flavor, thread_state_t state, mach_msg_type_number_t *state_count) argument
3152 task_t task = current_task(); local
3238 task_set_phys_footprint_limit( task_t task, int new_limit_mb, int *old_limit_mb) argument
3253 task_set_phys_footprint_limit_internal( task_t task, int new_limit_mb, int *old_limit_mb, boolean_t trigger_exception) argument
3298 task_get_phys_footprint_limit( task_t task, int *limit_mb) argument
3311 task_set_phys_footprint_limit( __unused task_t task, __unused int new_limit_mb, __unused int *old_limit_mb) argument
3320 task_get_phys_footprint_limit( __unused task_t task, __unused int *limit_mb) argument
3342 check_for_tasksuspend(task_t task) argument
3361 task_reference( task_t task) argument
3374 task_findtid(task_t task, uint64_t tid) argument
3413 mac_task_label_update_internal( struct label *pl, struct task *task) argument
3428 mac_task_label_modify( struct task *task, void *arg, void (*f) (struct label *l, void *arg)) argument
3441 mac_task_get_label(struct task *task) argument
3451 task_cpu_usage_monitor_ctl(task_t task, uint32_t *flags) argument
3468 task_wakeups_monitor_ctl(task_t task, uint32_t *flags, int32_t *rate_hz) argument
3571 task_t task = current_task(); local
[all...]
H A Dipc_tt.c108 * Initialize a task's IPC state.
118 task_t task,
132 space->is_task = task;
142 itk_lock_init(task);
143 task->itk_self = kport;
144 task->itk_nself = nport;
145 task->itk_resume = IP_NULL; /* Lazily allocated on-demand */
146 task->itk_sself = ipc_port_make_send(kport);
147 task->itk_space = space;
151 mac_task_label_associate(parent, task,
117 ipc_task_init( task_t task, task_t parent) argument
225 ipc_task_enable( task_t task) argument
250 ipc_task_disable( task_t task) argument
294 ipc_task_terminate( task_t task) argument
373 ipc_task_reset( task_t task) argument
626 retrieve_task_self_fast( register task_t task) argument
707 task_t task = current_task(); local
732 task_t task = thread->task; local
886 task_get_special_port( task_t task, int which, ipc_port_t *portp) argument
954 task_set_special_port( task_t task, int which, ipc_port_t port) argument
1041 mach_ports_register( task_t task, mach_port_array_t memory, mach_msg_type_number_t portsCnt) argument
1115 mach_ports_lookup( task_t task, mach_port_array_t *portsp, mach_msg_type_number_t *portsCnt) argument
1174 task_t task; local
1213 task_t task = TASK_NULL; local
1245 task_name_t task = TASK_NULL; local
1278 task_suspension_token_t task = TASK_NULL; local
1311 task_t task; local
1343 task_t task; local
1432 task_t task = TASK_NULL; local
1460 convert_task_to_port( task_t task) argument
1486 convert_task_suspension_token_to_port( task_suspension_token_t task) argument
1686 task_set_exception_ports( task_t task, exception_mask_t exception_mask, ipc_port_t new_port, exception_behavior_t new_behavior, thread_state_flavor_t new_flavor) argument
1875 task_swap_exception_ports( task_t task, exception_mask_t exception_mask, ipc_port_t new_port, exception_behavior_t new_behavior, thread_state_flavor_t new_flavor, exception_mask_array_t masks, mach_msg_type_number_t *CountCnt, exception_port_array_t ports, exception_behavior_array_t behaviors, thread_state_flavor_array_t flavors) argument
2055 task_get_exception_ports( task_t task, exception_mask_t exception_mask, exception_mask_array_t masks, mach_msg_type_number_t *CountCnt, exception_port_array_t ports, exception_behavior_array_t behaviors, thread_state_flavor_array_t flavors) argument
[all...]
H A Dtask_policy.c33 #include <kern/task.h>
53 * This subsystem manages task and thread IO priority and backgrounding,
54 * as well as importance inheritance, process suppression, task QoS, and apptype.
60 * Requested represents the wishes of each interface that influences task policy.
64 * Each interface that has an input into the task policy state machine controls a field in requested.
68 * All kernel subsystems that behave differently based on task policy call into
69 * the get_effective_policy function, which returns the decision of the task policy state machine
73 * Here are the steps to change a policy on a task or thread:
74 * 1) Lock task
76 * 3) Run a task polic
257 task_policy_set( task_t task, task_policy_flavor_t flavor, task_policy_t policy_info, mach_msg_type_number_t count) argument
432 task_importance( task_t task, integer_t importance) argument
466 task_policy_get( task_t task, task_policy_flavor_t flavor, task_policy_t policy_info, mach_msg_type_number_t *count, boolean_t *get_default) argument
605 task_policy_create(task_t task, int parent_boosted) argument
631 task_policy_update_locked(task_t task, thread_t thread) argument
658 task_policy_update_internal_locked(task_t task, thread_t thread, boolean_t in_create) argument
977 task_policy_update_task_locked(task_t task, boolean_t update_throttle, boolean_t update_threads) argument
1069 task_policy_update_complete_unlocked(task_t task, thread_t thread) argument
1132 proc_set_task_policy(task_t task, thread_t thread, int category, int flavor, int value) argument
1162 proc_set_task_policy_thread(task_t task, uint64_t tid, int category, int flavor, int value) argument
1208 proc_set_task_policy_locked(task_t task, thread_t thread, int category, int flavor, int value) argument
1336 proc_get_task_policy(task_t task, thread_t thread, int category, int flavor) argument
1410 proc_get_effective_task_policy(task_t task, int flavor) argument
1430 proc_get_effective_policy(task_t task, thread_t thread, int flavor) argument
1700 proc_set_task_apptype(task_t task, int apptype) argument
1764 proc_task_is_tal(task_t task) argument
1771 task_grab_latency_qos(task_t task) argument
1778 proc_get_darwinbgstate(task_t task, uint32_t * flagsp) argument
1806 task_t task = thread->task; local
1817 trequested(task_t task, thread_t thread) argument
1824 teffective(task_t task, thread_t thread) argument
1831 tpending(task_t task, thread_t thread) argument
1837 task_requested_bitfield(task_t task, thread_t thread) argument
1879 task_effective_bitfield(task_t task, thread_t thread) argument
1908 task_pending_bitfield(task_t task, thread_t thread) argument
1929 proc_get_task_ruse_cpu(task_t task, uint32_t *policyp, uint8_t *percentagep, uint64_t *intervalp, uint64_t *deadlinep) argument
2010 proc_set_task_ruse_cpu(task_t task, uint32_t policy, uint8_t percentage, uint64_t interval, uint64_t deadline, int cpumon_entitled) argument
2058 proc_clear_task_ruse_cpu(task_t task, int cpumon_entitled) argument
2096 task_apply_resource_actions(task_t task, int type) argument
2143 task_get_cpuusage(task_t task, uint8_t *percentagep, uint64_t *intervalp, uint64_t *deadlinep, int *scope) argument
2172 task_disable_cpumon(task_t task) argument
2203 task_set_cpuusage(task_t task, uint8_t percentage, uint64_t interval, uint64_t deadline, int scope, int cpumon_entitled) argument
2349 task_clear_cpuusage(task_t task, int cpumon_entitled) argument
2361 task_clear_cpuusage_locked(task_t task, int cpumon_entitled) argument
2400 task_t task = (task_t)param0; local
2416 task_importance_mark_donor(task_t task, boolean_t donating) argument
2424 task_importance_mark_receiver(task_t task, boolean_t receiving) argument
2447 task_update_boost_locked(task_t task, boolean_t boost_active) argument
2479 task_is_importance_donor(task_t task) argument
2489 task_is_importance_receiver(task_t task) argument
2708 task_hold_multiple_assertion(__imp_only task_t task, __imp_only uint32_t count) argument
2718 task_add_importance_watchport(__imp_only task_t task, __imp_only __impdebug_only int pid, __imp_only mach_port_t port, int *boostp) argument
2799 task_has_been_notified(task_t task, int pressurelevel) argument
2820 task_used_for_purging(task_t task, int pressurelevel) argument
2841 task_mark_has_been_notified(task_t task, int pressurelevel) argument
2860 task_mark_used_for_purging(task_t task, int pressurelevel) argument
2879 task_clear_has_been_notified(task_t task, int pressurelevel) argument
2898 task_clear_used_for_purging(task_t task) argument
2922 task_importance_estimate(task_t task) argument
[all...]
H A Dtask.h59 * File: task.h
108 #include <machine/task.h>
120 /* defns for task->rsu_controldata */
149 struct task { struct
161 /* Threads in this task */
203 struct ipc_port *itk_resume; /* a receive right to resume this task */
231 zinfo_usage_t tkm_zinfo; /* per-task, per-zone usage statistics */
237 uint32_t t_flags; /* general-purpose task flags protected by task_lock (TL) */
238 #define TF_64B_ADDR 0x1 /* task has 64-bit addressing */
239 #define TF_64B_DATA 0x2 /* task ha
[all...]
H A Dbsd_kern.c30 #include <mach/task.h>
36 #include <kern/task.h>
64 int fill_task_rusage_v2(task_t task, struct rusage_info_v2 *ri);
80 return(th->task != TASK_NULL ? th->task->bsd_info : NULL);
110 * Until then, we cannot block here. We know the task
114 thread_t get_firstthread(task_t task) argument
116 thread_t thread = (thread_t)(void *)queue_first(&task->threads);
118 if (queue_end(&task->threads, (queue_entry_t)thread))
121 if (!task
128 get_signalact( task_t task, thread_t *result_out, int setast) argument
176 check_actforsig( task_t task, thread_t thread, int setast) argument
264 get_task_numactivethreads(task_t task) argument
300 swap_task_map(task_t task, thread_t thread, vm_map_t map, boolean_t doswitch) argument
335 get_task_resident_size(task_t task) argument
346 get_task_phys_footprint(task_t task) argument
362 get_task_phys_footprint_max(task_t task) argument
484 get_task_userstop( task_t task) argument
504 get_task_pidsuspended( task_t task) argument
514 get_task_frozen( task_t task) argument
563 task_act_iterate_wth_args( task_t task, void (*func_callback)(thread_t, void *), void *func_arg) argument
596 fill_taskprocinfo(task_t task, struct proc_taskinfo_internal * ptinfo) argument
677 fill_taskthreadinfo(task_t task, uint64_t thaddr, int thuniqueid, struct proc_threadinfo_internal * ptinfo, void * vpp, int *vidp) argument
727 fill_taskthreadlist(task_t task, void * buffer, int thcount) argument
755 get_numthreads(task_t task) argument
777 fill_task_rusage_v2(task_t task, struct rusage_info_v2 *ri) argument
[all...]
H A Dsyscall_emulation.c62 #include <mach/task.h>
66 #include <kern/task.h>
79 * Set the list of emulated system calls for this task.
84 __unused task_t task,
95 * Get the list of emulated system calls for this task.
100 __unused task_t task,
110 * set up for user space emulation of syscalls within this task.
114 __unused task_t task,
83 task_set_emulation_vector( __unused task_t task, __unused int vector_start, __unused emulation_vector_t emulation_vector, __unused mach_msg_type_number_t emulation_vector_count) argument
99 task_get_emulation_vector( __unused task_t task, __unused int *vector_start, __unused emulation_vector_t *emulation_vector, __unused mach_msg_type_number_t *emulation_vector_count) argument
113 task_set_emulation( __unused task_t task, __unused vm_offset_t routine_entry_pt, __unused int routine_number) argument
H A Dtask_swap.c43 #include <kern/task.h>
56 * Make a task swappable or non-swappable. If made non-swappable,
62 task_t task,
68 if (task == TASK_NULL)
60 task_swappable( host_priv_t host_priv, task_t task, __unused boolean_t make_swappable) argument
H A Dextmod_statistics.h32 * modification of a task by another agent on the system.
39 #include <kern/task.h>
H A Dipc_tt.h75 /* Initialize a task's IPC state */
77 task_t task,
80 /* Enable a task for IPC access */
82 task_t task);
84 /* Disable IPC access to a task */
86 task_t task);
88 /* Clear out a task's IPC state */
90 task_t task);
92 /* Clean up and destroy a task's IPC state */
94 task_t task);
[all...]
H A Dtelemetry.h48 extern void telemetry_task_ctl(task_t task, uint32_t reason, int enable_disable);
49 extern void telemetry_task_ctl_locked(task_t task, uint32_t reason, int enable_disable);
/xnu-2422.115.4/security/
H A Dmac_mach_internal.h62 void mac_task_label_update_internal(struct label *pl, struct task *t);
65 int mac_port_check_method(task_t task, struct label *sub, struct label *obj, int msgid);
84 void mac_task_label_associate(struct task *, struct task *, struct label *,
86 void mac_task_label_associate_kernel(struct task *, struct label *, struct label *);
87 void mac_task_label_modify( struct task *pt, void *arg,
89 struct label *mac_task_get_label(struct task *task);
99 int mac_port_check_label_update(struct label *task, struct label *oldl, struct label *newl);
101 int mac_port_check_send(struct label *task, struc
[all...]
H A Dmac_port.c65 #include <kern/task.h>
154 mac_port_check_label_update(struct label *task, struct label *old, argument
159 MAC_CHECK(port_check_label_update, task, old, newlabel);
165 mac_port_check_send(struct label *task, struct label *port) argument
169 MAC_CHECK(port_check_send, task, port);
175 mac_port_check_receive(struct label *task, struct label *sender) argument
179 MAC_CHECK(port_check_receive, task, sender);
185 mac_port_check_make_send(struct label *task, struct label *port) argument
189 MAC_CHECK(port_check_make_send, task, port);
195 mac_port_check_make_send_once(struct label *task, struc argument
205 mac_port_check_copy_send(struct label *task, struct label *port) argument
215 mac_port_check_move_send(struct label *task, struct label *port) argument
225 mac_port_check_move_send_once(struct label *task, struct label *port) argument
235 mac_port_check_move_receive(struct label *task, struct label *port) argument
245 mac_port_check_hold_send(struct label *task, struct label *port) argument
255 mac_port_check_hold_send_once(struct label *task, struct label *port) argument
265 mac_port_check_hold_receive(struct label *task, struct label *port) argument
275 mac_port_check_method(task_t task, struct label *sub, struct label *obj, int msgid) argument
[all...]
H A Dmac_task.c77 mac_task_label_update(struct label *cred, struct label *task) argument
80 MAC_PERFORM(task_label_update, cred, task);
101 mac_task_label_associate(struct task *parent, struct task *child, struct label *pl,
109 mac_task_label_associate_kernel(struct task *t, struct label *tl, struct label *tportl)
123 error = MAC_EXTERNALIZE(task, label, elements, outbuf, outbuflen);
133 error = MAC_INTERNALIZE(task, label, string);
/xnu-2422.115.4/bsd/dev/chud/
H A Dchud_process.c32 #include <kern/task.h>
35 int chudxnu_pid_for_task(task_t task);
40 chudxnu_pid_for_task(task_t task) argument
45 if(task!=TASK_NULL) {
46 p = (proc_t)(get_bsdtask_info(task));
60 t = p->task;
77 // no task, so try looking in the uthread and/or proc
/xnu-2422.115.4/osfmk/vm/
H A Dvm_shared_region.h158 struct task *task,
163 struct task *task);
165 struct task *task);
177 struct task *task,
214 struct task *task);
[all...]
/xnu-2422.115.4/tools/lldbmacros/
H A Duserspace.py72 if not WriteInt64ToMemoryAddress(unsigned(thread.task.map.pmap), kdp_pmap_addr):
73 print "Failed to write in kdp_pmap = 0x{0:0>16x} value.".format(thread.task.map.pmap)
98 def _PrintARMUserStack(task, cur_pc, cur_fp, framesize, frametype, frameformat, user_lib_info=None):
106 frame = GetUserDataAsString(task, cur_fp, framesize)
121 _PrintARMUserStack(thread.task, cur_pc, cur_fp, framesize, frametype, frameformat, user_lib_info=user_lib_info)
141 """ Print out the user stack for each thread in a task, followed by the user libraries.
152 task = kern.GetValueFromAddress(cmd_args[0], 'task *')
154 pval = Cast(task.bsd_info, 'proc *')
155 #print GetTaskSummary(task)
[all...]

Completed in 188 milliseconds

123456789