/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/ |
H A D | mk_sp.c | 65 * Set scheduling policy & priority for thread. 71 integer_t priority) 111 if (priority >= thread->max_priority) 112 priority = thread->max_priority - thread->task_priority; 114 if (priority >= MINPRI_KERNEL) 115 priority -= MINPRI_KERNEL; 117 if (priority >= MINPRI_RESERVED) 118 priority -= MINPRI_RESERVED; 120 priority -= BASEPRI_DEFAULT; 122 priority 68 thread_policy_common( thread_t thread, integer_t policy, integer_t priority) argument [all...] |
H A D | priority.c | 80 * Recalculate the quantum and priority for a thread. 108 thread->priority = DEPRESSPRI; 122 * Recompute scheduled priority if appropriate. 143 * Adjust the scheduled priority if 207 * Calculate the timesharing priority based upon usage and load. 211 (pri) = (thread)->priority /* start with base priority */ \ 223 * Set the base priority of the thread 224 * and reset its scheduled priority. 231 register int priority) 229 set_priority( register thread_t thread, register int priority) argument 251 register int priority; local 280 register int priority; local [all...] |
H A D | task_policy.c | 38 integer_t priority, 127 integer_t priority, 134 if (priority > task->max_priority) 135 priority = task->max_priority; 137 if (priority < MINPRI) 138 priority = MINPRI; 140 task->priority = priority; 146 thread_task_priority(thread, priority, max_priority); 125 task_priority( task_t task, integer_t priority, integer_t max_priority) argument
|
H A D | thread_policy.c | 226 integer_t priority; local 229 priority = BASEPRI_RTQUEUES; 232 priority = MAXPRI; 235 priority = -MAXPRI; 237 priority = thread->importance; 239 priority += thread->task_priority; 241 if (priority > thread->max_priority) 242 priority = thread->max_priority; 244 if (priority < MINPRI) 245 priority 252 thread_task_priority( thread_t thread, integer_t priority, integer_t max_priority) argument [all...] |
H A D | locks.c | 543 integer_t priority; local 560 priority = self->sched_pri; 561 if (priority < self->priority) 562 priority = self->priority; 563 if (priority < BASEPRI_DEFAULT) 564 priority = BASEPRI_DEFAULT; 570 if ( mutex->lck_mtx_pri < priority && 571 holder->sched_pri < priority ) { 646 integer_t priority = mutex->lck_mtx_pri; local [all...] |
H A D | thread.c | 179 thread_template.priority = 0; 291 * Cancel priority depression, wait for concurrent expirations 566 integer_t priority, 673 new_thread->task_priority = parent_task->priority; 674 new_thread->priority = (priority < 0)? parent_task->priority: priority; 675 if (new_thread->priority > new_thread->max_priority) 676 new_thread->priority 564 thread_create_internal( task_t parent_task, integer_t priority, thread_continue_t continuation, thread_t *out_thread) argument 785 kernel_thread_create( thread_continue_t continuation, void *parameter, integer_t priority, thread_t *new_thread) argument 819 kernel_thread_start_priority( thread_continue_t continuation, void *parameter, integer_t priority, thread_t *new_thread) argument [all...] |
H A D | sched_prim.h | 130 /* Set the current scheduled priority */ 133 int priority); 135 /* Set base priority of the specified thread */ 138 int priority); 140 /* Reset scheduled priority of thread */ 145 /* Adjust scheduled priority of thread during execution */
|
H A D | thread.h | 197 integer_t sched_pri; /* scheduled (current) priority */ 198 integer_t priority; /* base priority */ member in struct:thread 199 integer_t max_priority; /* max base priority */ 200 integer_t task_priority; /* copy of task base priority */ 240 natural_t pri_shift; /* usage -> priority from pset */ 469 integer_t priority, 478 integer_t priority, 484 integer_t priority,
|
H A D | task.c | 438 new_task->priority = BASEPRI_KERNEL; 442 new_task->priority = BASEPRI_DEFAULT; 1357 rr_base->base_priority = task->priority; 1382 ts_base->base_priority = task->priority;
|
H A D | task.h | 141 integer_t priority; /* base priority for threads */ member in struct:task 142 integer_t max_priority; /* maximum priority for threads */
|
H A D | bsd_kern.c | 569 ptinfo->pti_priority = task->priority; 615 ptinfo->pth_priority = thact->priority;
|
H A D | sched_prim.c | 1178 * Update the priority. 1246 /* I am the highest priority runnable (non-idle) thread */ 2173 if (thread->sched_mode & TH_MODE_TIMESHARE && thread->sched_pri < thread->priority) 2394 * Update priority if needed. 2606 * Set the scheduled priority of the specified thread. 2615 int priority) 2619 thread->sched_pri = priority; 2629 processor->current_pri = priority; 3004 thread->sched_pri = thread->priority = IDLEPRI; 2613 set_sched_pri( thread_t thread, int priority) argument
|
/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/ |
H A D | IOCPU.cpp | 52 typedef kern_return_t (*iocpu_platform_action_t)(void * refcon0, void * refcon1, uint32_t priority, 59 int32_t priority; member in struct:iocpu_platform_action_entry 137 if (next->priority > entry->priority) 161 uint32_t pri = (next->priority < 0) ? -next->priority : next->priority; 190 IOServicePlatformAction(void * refcon0, void * refcon1, uint32_t priority, argument 200 (void *) priority, param1, param2, param3); 212 uint32_t priority; local [all...] |
H A D | IOServicePrivate.h | 90 SInt32 priority; member in class:_IOServiceNotifier
|
H A D | IOService.cpp | 2279 val1 = obj1->priority; 2282 val2 = obj2->priority; 2296 return( notify->priority ); 3332 SInt32 priority ) 3351 notify->priority = priority; 3378 SInt32 priority, OSIterator ** existing ) 3401 notify = setNotification( type, matching, handler, target, ref, priority ); 3419 SInt32 priority, OSIterator ** existing ) 3426 priority, existin 3374 doInstallNotification( const OSSymbol * type, OSDictionary * matching, IOServiceNotificationHandler handler, void * target, void * ref, SInt32 priority, OSIterator ** existing ) argument 3415 installNotification( const OSSymbol * type, OSDictionary * matching, IOServiceNotificationHandler handler, void * target, void * ref, SInt32 priority, OSIterator ** existing ) argument 3487 SInt32 priority = 0; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/ |
H A D | pthread_internal.h | 66 int16_t priority; /* Priority to restore when mutex unlocked */ member in struct:_pthread_mutex
|
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/ |
H A D | kern_lockf.c | 395 int priority, needtolink, error; local 407 * Set the priority 409 priority = PLOCK; 411 priority += 4; 412 priority |= PCATCH; 528 error = msleep(lock, &vp->v_lock, priority, lockstr, 0);
|
H A D | kern_resource.c | 112 static int do_background_thread(struct proc *curp, int priority); 436 do_background_thread(struct proc *curp, int priority) argument 448 if ( (priority & PRIO_DARWIN_BG) == 0 ) { 459 /* reset thread priority (we did not save previous value) */
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/mach/ |
H A D | mach_traps.h | 156 int priority); 437 PAD_ARG_(int, priority);
|
/macosx-10.5.8/xnu-1228.15.4/iokit/IOKit/ |
H A D | IOService.h | 648 @discussion IOService will deliver notifications of changes in state of an IOService object to registered clients. The type of notification is specified by a symbol, for example <code>gIOMatchedNotification</code> or <code>gIOTerminatedNotification</code>, and notifications will only include IOService objects that match the supplied matching dictionary. Notifications are ordered by a priority set with <code>addNotification</code>. When the notification is installed, its handler will be called with each of any currently existing IOService objects that are in the correct state (eg. registered) and match the supplied matching dictionary, avoiding races between finding preexisting and new IOService events. The notification request is identified by an instance of an IONotifier object, through which it can be enabled, disabled, or removed. <code>addNotification</code> consumes a retain count on the matching dictionary when the notification is removed. 659 @param priority A constant ordering all notifications of a each type. 666 SInt32 priority = 0 ); 694 @param priority See <code>addNotification</code>. 702 SInt32 priority, OSIterator ** existing ); 1171 SInt32 priority = 0 ); 1177 SInt32 priority, OSIterator ** existing );
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/default_pager/ |
H A D | dp_backing_store.c | 548 int priority, 566 ("priority=%d clsize=%d bs_port=0x%x\n", 567 priority, clsize, (int) backing_store)); 583 if (priority == DEFAULT_PAGER_BACKING_STORE_MAXPRI) 584 priority = BS_MAXPRI; 585 else if (priority == BS_NOPRI) 586 priority = BS_MAXPRI; 588 priority = BS_MINPRI; 589 bs->bs_priority = priority; 1436 * none at this priority 546 default_pager_backing_store_create( memory_object_default_t pager, int priority, int clsize, MACH_PORT_FACE *backing_store) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/ |
H A D | pcb.c | 502 thread, thread->priority, 533 thread, thread->priority,
|
/macosx-10.5.8/xnu-1228.15.4/bsd/vm/ |
H A D | dp_backing_file.c | 180 AUDIT_ARG(value, args->priority); 253 -1, /* default priority */
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/ |
H A D | ip_mroute.c | 329 static int priority(struct vif *, struct ip *); 1779 * based on the precedence value and the priority 1789 p = priority(vifp, ip); 1794 if (p > priority(vifp, mtod(m, struct ip *))) { 1877 priority(__unused struct vif *vifp, struct ip *ip) function 1884 * The UDP port space is divided up into four priority ranges: 1885 * [0, 16384) : unclassified - lowest priority 1886 * [16384, 32768) : audio - highest priority 1887 * [32768, 49152) : whiteboard - medium priority 1888 * [49152, 65536) : video - low priority [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/ |
H A D | machine_routines.c | 267 set_priority(thread, thread->priority + 1);
|