/macosx-10.9.5/Libnotify-121.20.1/ |
H A D | notify_client.c | 284 task_t task = mach_task_self(); local 286 kr = mach_port_allocate(task, MACH_PORT_RIGHT_RECEIVE, &globals->notify_common_port); 295 task_t task = mach_task_self(); 297 mach_port_mod_refs(task, globals->notify_common_port, MACH_PORT_RIGHT_RECEIVE, -1); 1472 task_t task; 1488 task = mach_task_self(); 1493 kstatus = mach_port_allocate(task, MACH_PORT_RIGHT_RECEIVE, notify_port); 1497 kstatus = mach_port_insert_right(task, *notify_port, *notify_port, MACH_MSG_TYPE_MAKE_SEND); 1500 if (mine == 1) mach_port_mod_refs(task, *notify_port, MACH_PORT_RIGHT_RECEIVE, -1); 1511 mach_port_mod_refs(task, *notify_por [all...] |
/macosx-10.9.5/xnu-2422.115.4/osfmk/conf/ |
H A D | Makefile.template | 33 task.o \
|
/macosx-10.9.5/xnu-2422.115.4/osfmk/mach/ |
H A D | Makefile | 40 task.defs \ 85 task.h \
|
/macosx-10.9.5/xnu-2422.115.4/osfmk/vm/ |
H A D | vm_shared_region.c | 67 * When the task terminates, we release a reference on its shared region. 121 /* should local (non-chroot) shared regions persist when no task uses them ? */ 188 * Retrieve a task's shared region and grab an extra reference to 195 task_t task) 201 task)); 203 task_lock(task); 205 shared_region = task->shared_region; 211 task_unlock(task); 215 task, shared_region)); 328 task_t task, 194 vm_shared_region_get( task_t task) argument 327 vm_shared_region_set( task_t task, vm_shared_region_t new_shared_region) argument 1285 vm_shared_region_enter( struct _vm_map *map, struct task *task, void *fsroot, cpu_type_t cpu) argument 1869 vm_commpage_enter( vm_map_t map, task_t task) argument [all...] |
H A D | vm_user.c | 67 * the kernel: mach_vm_allocate (for any task on the platform), vm_allocate 68 * (for a task with the same address space size, especially the current task), 69 * and vm32_vm_allocate (for the specific case of a 32-bit task). vm_allocate 71 * makes sense on platforms where a user task can either be 32 or 64, or the kernel 72 * task can be 32 or 64. mach_vm_allocate makes sense everywhere, and is preferred 82 * task and kernel_task are unlikely to use the same size parameters 108 #include <kern/task.h> 706 * thread/task (but we don't support cluster's anymore so this is moot). 1002 * Remap a range of memory from one task int [all...] |
H A D | pmap.h | 619 extern void pmap_map_sharedpage(task_t task, pmap_t pmap);
|
H A D | vm_fault.c | 81 #include <kern/task.h> 121 * keep the UI active so that the user has a chance to kill the offending task before the system 125 * to tasks that appear to be bloated. When swap runs out, any task using more than vm_hard_throttle_threshold 2645 task_t task; local 2659 task = current_task(); 2661 if (task->bsd_info != NULL) 2662 procname = proc_name_address(task->bsd_info); 4873 if (thread != THREAD_NULL && thread->task != TASK_NULL) 4874 thread->task->faults++;
|
H A D | vm_map.c | 402 * are now "top level" maps (either task map, kernel map or submap 5122 * wiring through the map entries of the task requesting the I/O. 5547 * we have to assume that the task has been fully 8454 * the calling task can detect that we have 9266 task_t task, 9271 ("shared_region: task %p: vm_map_exec(%p,%p,%p,0x%x): ->\n", 9272 current_task(), new_map, task, fsroot, cpu)); 9273 (void) vm_commpage_enter(new_map, task); 9274 (void) vm_shared_region_enter(new_map, task, fsroot, cpu); 9276 ("shared_region: task 9264 vm_map_exec( vm_map_t new_map, task_t task, void *fsroot, cpu_type_t cpu) argument [all...] |
H A D | vm_map.h | 95 task_t task, 227 /* Only in task maps: */ 309 * regions of a task's address space to the corresponding 792 /* Create a new task map using an existing task map as a template. */
|
H A D | vm_purgeable.c | 922 // printf("%sPURGING object %p task %p importance %d queue %d group %d force_purge_below_group %d memorystatus_vm_pressure_level %d\n", forced_purge ? "FORCED " : "", object, object->vo_purgeable_owner, task_importance_estimate(object->vo_purgeable_owner), i, group, force_purge_below_group, memorystatus_vm_pressure_level); 1087 task_t task) 1098 if (object->vo_purgeable_owner == task) { 1103 assert(task->task_volatile_objects >= num_objects); 1104 OSAddAtomic(-num_objects, &task->task_volatile_objects); 1110 task_t task) 1115 if (task == NULL) { 1122 vm_purgeable_queue_disown(queue, 0, task); 1126 vm_purgeable_queue_disown(queue, group, task); 1130 vm_purgeable_queue_disown(queue, group, task); 1084 vm_purgeable_queue_disown( purgeable_q_t queue, int group, task_t task) argument 1109 vm_purgeable_disown( task_t task) argument [all...] |
/macosx-10.9.5/xnu-2422.115.4/osfmk/pmc/ |
H A D | pmc.c | 28 #include <kern/task.h> 218 * Keeps track of all system, task, and thread-level reservations (both active and 221 * We track them all here (rather than in their respective task or thread only) 223 * every task and thread) to determine if/when a new reservation would 702 * Since this member is a union, we only need to set either the task 705 resv->task = TASK_NULL; 743 * Used to place reservation into one of the system, task, and thread queues 768 if(current_task() == resv->task) { 800 * This method will inspect the task/thread of the reservation to see if it 801 * matches the new incoming one (for thread/task reservation 927 pmc_internal_update_task_flag(task_t task, boolean_t newFlag) argument 2410 pmc_reserve_task(pmc_t pmc, pmc_config_t config, task_t task, pmc_reservation_t *reservation) argument [all...] |
H A D | pmc.h | 402 * reserve the counter using that config in a given execution context (system, or 1 task, or 1 thread), 540 task_t task; // not retained member in union:pmc_reservation::__anon15486 652 * @abstract Reserve a PMC for task-wide counting. 653 * @discussion This method will attempt to reserve the given pmc for task-wide counting. The resulting reservation will only count when the task is running 657 * @param task The task for which to enable the counter. 661 kern_return_t pmc_reserve_task(pmc_t pmc, pmc_config_t config, task_t task, pmc_reservation_t *reservation); 677 * @discussion This method instructs the given reservation to start counting as soon as possible. If the reservation is for a thread (or task) other than the 678 * current thread, or for a pmc that is not accessible from the current logical core, the reservation will start counting the next time the thread (or task) [all...] |
/macosx-10.9.5/xnu-2422.115.4/osfmk/kern/ |
H A D | zalloc.c | 914 zone_t zinfo_zone = ZONE_NULL; /* zone of per-task zone info */ 1779 * If we are tracking zone info per task, and we have 2121 /* initialize fake zones and zone info if tracking by task */ 2129 zisize, "per task zinfo"); 2135 zinfo_task_init(task_t task) argument 2138 task->tkm_zinfo = zalloc(zinfo_zone); 2139 memset(task->tkm_zinfo, 0, sizeof(zinfo_usage_store_t) * ZINFO_SLOTS); 2141 task->tkm_zinfo = NULL; 2146 zinfo_task_free(task_t task) argument 2148 assert(task ! 2556 task_t task; local 2901 task_t task; local 3709 task_zone_info( task_t task, mach_zone_name_array_t *namesp, mach_msg_type_number_t *namesCntp, task_zone_info_array_t *infop, mach_msg_type_number_t *infoCntp) argument 3869 task_zone_info( __unused task_t task, __unused mach_zone_name_array_t *namesp, __unused mach_msg_type_number_t *namesCntp, __unused task_zone_info_array_t *infop, __unused mach_msg_type_number_t *infoCntp) argument [all...] |
H A D | debug.c | 459 if (ml_nofault_copy((vm_offset_t)¤t_thread()->task, (vm_offset_t) &ctask, sizeof(task_t)) == sizeof(task_t))
|
H A D | kpc_common.c | 236 task_t task = NULL; local 244 task = chudxnu_task_for_thread(ctx.cur_thread); 245 if (task) 246 ctx.cur_pid = chudxnu_pid_for_task(task);
|
H A D | mk_sp.c | 44 #include <kern/task.h>
|
H A D | priority.c | 100 * We bill CPU time to both the individual thread and its task. 488 if (sched_use_combined_fgbg_decay && ((thread)->task->max_priority > MAXPRI_THROTTLE) && (new_pri == MAXPRI_THROTTLE)) {
|
H A D | processor.c | 74 #include <kern/task.h> 849 task_t task, *task_list = (task_t *)addr; local 851 for (task = (task_t)queue_first(&tasks); 852 !queue_end(&tasks, (queue_entry_t)task); 853 task = (task_t)queue_next(&task->tasks)) { 855 if (task != kernel_task) { 857 task_reference_internal(task); 858 task_list[actual++] = task;
|
H A D | sched_fixedpriority.c | 54 #include <kern/task.h> 697 if ((thread->sched_mode == TH_MODE_TIMESHARE) && (thread->task != kernel_task) && !(thread->sched_flags & TH_SFLAG_DEMOTED_MASK)) {
|
H A D | startup.c | 89 #include <kern/task.h> 260 * Initialize the IPC, task, and thread subsystems.
|
H A D | task.c | 57 * 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 D | task.h | 59 * 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...] |
/macosx-10.9.5/xnu-2422.115.4/osfmk/kperf/ |
H A D | kperf.c | 255 task_t task; local 261 task = port_name_to_task(portname); 263 if( task == TASK_NULL ) 267 pid = chudxnu_pid_for_task(task); 269 task_deallocate_internal(task);
|
H A D | pet.c | 68 task_t task; local 75 task = chudxnu_task_for_thread(thread); 76 if(task) 77 ctx.cur_pid = chudxnu_pid_for_task(task); 119 /* given a task (preferably stopped), sample all the threads in it */ 121 pet_sample_task( task_t task ) 127 kr = chudxnu_task_threads(task, &threadv, &threadc); 148 task_t task = taskv[i]; local 153 if(!task) { 157 /* try and stop any task othe [all...] |
H A D | timetrigger.c | 106 task_t task = NULL; local 118 task = chudxnu_task_for_thread(ctx.cur_thread); 119 if (task) 120 ctx.cur_pid = chudxnu_pid_for_task(task);
|