Searched refs:priority (Results 1 - 25 of 32) sorted by relevance

12

/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/
H A Dmk_sp.c65 * 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 Dpriority.c80 * 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 Dtask_policy.c38 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 Dthread_policy.c226 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 Dlocks.c543 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 Dthread.c179 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 Dsched_prim.h130 /* 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 Dthread.h197 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 Dtask.c438 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 Dtask.h141 integer_t priority; /* base priority for threads */ member in struct:task
142 integer_t max_priority; /* maximum priority for threads */
H A Dbsd_kern.c569 ptinfo->pti_priority = task->priority;
615 ptinfo->pth_priority = thact->priority;
H A Dsched_prim.c1178 * 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 DIOCPU.cpp52 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 DIOServicePrivate.h90 SInt32 priority; member in class:_IOServiceNotifier
H A DIOService.cpp2279 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 Dpthread_internal.h66 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 Dkern_lockf.c395 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 Dkern_resource.c112 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 Dmach_traps.h156 int priority);
437 PAD_ARG_(int, priority);
/macosx-10.5.8/xnu-1228.15.4/iokit/IOKit/
H A DIOService.h648 @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 Ddp_backing_store.c548 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 Dpcb.c502 thread, thread->priority,
533 thread, thread->priority,
/macosx-10.5.8/xnu-1228.15.4/bsd/vm/
H A Ddp_backing_file.c180 AUDIT_ARG(value, args->priority);
253 -1, /* default priority */
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dip_mroute.c329 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 Dmachine_routines.c267 set_priority(thread, thread->priority + 1);

Completed in 160 milliseconds

12