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

123

/darwin-on-arm/xnu/osfmk/kern/
H A Dmk_sp.c65 * Set scheduling policy & priority for thread.
71 integer_t priority)
115 if (priority >= thread->max_priority)
116 priority = thread->max_priority - thread->task_priority;
118 if (priority >= MINPRI_KERNEL)
119 priority -= MINPRI_KERNEL;
121 if (priority >= MINPRI_RESERVED)
122 priority -= MINPRI_RESERVED;
124 priority -= BASEPRI_DEFAULT;
126 priority
68 thread_policy_common( thread_t thread, integer_t policy, integer_t priority) argument
[all...]
H A Dthread_policy.c238 return mach_do_background_thread(thread, info->priority);
256 integer_t priority; local
259 priority = BASEPRI_RTQUEUES;
262 priority = MAXPRI;
265 priority = -MAXPRI;
267 priority = thread->importance;
269 priority += thread->task_priority;
271 if (priority > thread->max_priority)
272 priority = thread->max_priority;
274 if (priority < MINPR
322 thread_task_priority( thread_t thread, integer_t priority, integer_t max_priority) argument
[all...]
H A Dpriority.c82 * Recalculate the quantum and priority for a thread.
131 thread->priority = DEPRESSPRI;
150 * Recompute scheduled priority if appropriate.
240 * Adjust the scheduled priority if
273 * Calculate the timesharing priority based upon usage and load.
279 (pri) = (thread)->priority /* start with base priority */ \
296 (pri) = (thread)->priority /* start with base priority */ \
312 * Set the base priority o
318 set_priority( register thread_t thread, register int priority) argument
342 register int priority; local
371 register int priority; local
[all...]
H A Dsched_proto.c83 int priority);
118 int priority,
122 sched_proto_priority_is_urgent(int priority);
294 int priority)
309 * Since we don't depress priorities, a high priority thread
313 * before coming back to a high priority thread. This isn't
318 while (count > 0 && pri >= priority) {
366 set_sched_pri(thread, thread->priority);
474 int priority,
482 result = global_runq->highq >= priority;
293 sched_proto_choose_thread(processor_t processor, int priority) argument
473 sched_proto_processor_queue_has_priority(processor_t processor __unused, int priority, boolean_t gte) argument
493 sched_proto_priority_is_urgent(int priority) argument
[all...]
H A Dsched_fixedpriority.c86 int priority);
121 int priority,
125 sched_fixedpriority_priority_is_urgent(int priority);
295 printf("standard fixed priority timeslicing quantum is %u ms\n", sched_fixedpriority_quantum_ms);
380 int priority)
384 thread = choose_thread(processor, runq_for_processor(processor), priority);
405 /* Reset current priority to base priority */
409 set_sched_pri(thread, thread->priority);
525 int priority,
379 sched_fixedpriority_choose_thread(processor_t processor, int priority) argument
524 sched_fixedpriority_processor_queue_has_priority(processor_t processor, int priority, boolean_t gte) argument
536 sched_fixedpriority_priority_is_urgent(int priority) argument
[all...]
H A Dsched_prim.h131 /* Set the current scheduled priority */
134 int priority);
136 /* Set base priority of the specified thread */
139 int priority);
141 /* Reset scheduled priority of thread */
146 /* Adjust scheduled priority of thread during execution */
203 /* Choose a thread from a processor's priority-based runq */
207 int priority);
393 int priority);
466 * Choose a thread of greater or equal priority fro
[all...]
H A Dlocks.c582 integer_t priority; local
599 priority = self->sched_pri;
600 if (priority < self->priority)
601 priority = self->priority;
602 if (priority < BASEPRI_DEFAULT)
603 priority = BASEPRI_DEFAULT;
609 if ( mutex->lck_mtx_pri < priority &&
610 holder->sched_pri < priority ) {
685 integer_t priority = mutex->lck_mtx_pri; local
[all...]
H A Dsched_grrr.c99 /* Map each proportional priority to its group */
125 int priority);
159 int priority,
163 sched_grrr_priority_is_urgent(int priority);
310 int priority __unused)
330 set_sched_pri(thread, thread->priority);
435 int priority,
441 i = grrr_group_mapping[grrr_priority_mapping[priority]];
452 sched_grrr_priority_is_urgent(int priority) argument
454 if (priority <
434 sched_grrr_processor_queue_has_priority(processor_t processor, int priority, boolean_t gte __unused) argument
[all...]
H A Dthread.c197 thread_template.priority = 0;
338 * Cancel priority depression, wait for concurrent expirations
642 integer_t priority,
779 new_thread->task_priority = parent_task->priority;
780 new_thread->priority = (priority < 0)? parent_task->priority: priority;
781 if (new_thread->priority > new_thread->max_priority)
782 new_thread->priority
640 thread_create_internal( task_t parent_task, integer_t priority, thread_continue_t continuation, int options, thread_t *out_thread) argument
1007 kernel_thread_create( thread_continue_t continuation, void *parameter, integer_t priority, thread_t *new_thread) argument
1041 kernel_thread_start_priority( thread_continue_t continuation, void *parameter, integer_t priority, thread_t *new_thread) argument
[all...]
H A Dsched_prim.c275 static boolean_t priority_is_urgent(int priority);
280 int priority,
339 int priority);
1577 int priority)
1585 return (wait_queue_wakeup_one(wq, event, result, priority));
1640 * Update the priority.
1700 /* I am the highest priority runnable (non-idle) thread */
1910 * to the original priority of the thread so that the
1917 * "background" priority.
1920 (thread->priority <
1573 thread_wakeup_prim_internal( event_t event, boolean_t one_thread, wait_result_t result, int priority) argument
1956 sched_traditional_choose_thread( processor_t processor, int priority) argument
1985 choose_thread( processor_t processor, run_queue_t rq, int priority) argument
3029 priority_is_urgent(int priority) argument
3211 processor_queue_has_priority(processor_t processor, int priority, boolean_t gte) argument
3740 set_sched_pri( thread_t thread, int priority) argument
[all...]
/darwin-on-arm/xnu/bsd/sys/
H A Dkern_memorystatus.h86 int32_t priority; member in struct:memorystatus_priority_entry
113 int32_t priority; member in struct:jetsam_snapshot_entry
179 int32_t priority; member in struct:memorystatus_node
200 extern kern_return_t memorystatus_list_add(int pid, int priority, int high_water_mark);
201 extern kern_return_t memorystatus_list_change(boolean_t effective, int pid, int priority, int state_flags, int high_water_mark);
/darwin-on-arm/xnu/bsd/kern/
H A Dpthread_synch.c130 static boolean_t workqueue_run_one(proc_t p, struct workqueue *wq, boolean_t overcommit, int priority);
132 static void wq_runreq(proc_t p, boolean_t overcommit, uint32_t priority, thread_t th, struct threadlist *tl,
135 static int setup_wqthread(proc_t p, thread_t th, boolean_t overcommit, uint32_t priority, int reuse_thread, struct threadlist *tl);
689 uint32_t priority; local
694 for (priority = 0; priority < WORKQUEUE_NUMPRIOS; priority++) {
695 if (wq->wq_requests[priority])
698 assert(priority < WORKQUEUE_NUMPRIOS);
703 for (affinity_tag = 0; affinity_tag < wq->wq_reqconc[priority]; affinity_ta
836 uint32_t priority; local
1274 int priority = uap->prio; local
1493 workqueue_run_one(proc_t p, struct workqueue *wq, boolean_t overcommit, int priority) argument
1533 uint32_t priority, orig_priority; local
2174 wq_runreq(proc_t p, boolean_t overcommit, uint32_t priority, thread_t th, struct threadlist *tl, int reuse_thread, int wake_thread, int return_directly) argument
2227 setup_wqthread(proc_t p, thread_t th, boolean_t overcommit, uint32_t priority, int reuse_thread, struct threadlist *tl) argument
[all...]
H A Dkern_memorystatus.c490 if (node->priority <= new_node->priority) {
562 memorystatus_list_add(pid_t pid, int priority, int high_water_mark) argument
577 MEMORYSTATUS_DEBUG(1, "memorystatus_list_add: adding process %d with priority %d, high water mark %d.\n", pid, priority, high_water_mark);
580 new_node->priority = priority;
595 memorystatus_list_change(boolean_t effective, pid_t pid, int priority, int state_flags, int high_water_mark) argument
605 MEMORYSTATUS_DEBUG(1, "memorystatus_list_change: changing process %d to priority %d with flags %d\n", pid, priority, state_flag
[all...]
H A Dkern_resource.c113 static void do_background_socket(struct proc *p, thread_t thread, int priority);
114 static int do_background_thread(struct proc *curp, thread_t thread, int priority);
115 static int do_background_proc(struct proc *curp, struct proc *targetp, int priority);
372 /* process marked for termination no priority management */
397 /* process marked for termination no priority management */
468 do_background_proc(struct proc *curp, struct proc *targetp, int priority) argument
491 if (priority == PRIO_DARWIN_NONUI)
494 error = proc_set_and_apply_bgtaskpolicy(targetp->task, priority);
504 do_background_socket(struct proc *p, thread_t thread, int priority) argument
510 if (priority
579 do_background_thread(struct proc *curp __unused, thread_t thread, int priority) argument
[all...]
/darwin-on-arm/xnu/iokit/Kernel/
H A DIOCPU.cpp53 typedef kern_return_t (*iocpu_platform_action_t)(void * refcon0, void * refcon1, uint32_t priority,
61 int32_t priority; member in struct:iocpu_platform_action_entry
146 if (next->priority > entry->priority)
170 uint32_t pri = (next->priority < 0) ? -next->priority : next->priority;
199 IOServicePlatformAction(void * refcon0, void * refcon1, uint32_t priority, argument
210 (void *) priority, param1, param2, param3);
222 uint32_t priority; local
[all...]
/darwin-on-arm/xnu/osfmk/i386/
H A Dlocks_i386.c1848 if (thread->priority < thread->sched_pri) {
1850 thread->sched_pri, thread->priority, 0, mutex, 0);
1880 integer_t priority; local
1887 priority = mutex->lck_mtx_pri;
1889 priority = 0;
1893 if (thread->sched_pri < priority || thread->was_promoted_on_wakeup) {
1896 thread->sched_pri, priority, thread->was_promoted_on_wakeup, mutex, 0);
1901 if (thread->sched_pri < priority)
1902 set_sched_pri(thread, priority);
2021 integer_t priority; local
[all...]
/darwin-on-arm/xnu/osfmk/mach/
H A Dthread_policy.h225 integer_t priority; member in struct:thread_background_policy
/darwin-on-arm/xnu/osfmk/default_pager/
H A Ddefault_pager_object.defs105 in priority : int;
/darwin-on-arm/xnu/bsd/net/pktsched/
H A Dpktsched_cbq.h133 int priority; member in struct:cbq_classstats
H A Dpktsched_priq.h102 u_int32_t priority; member in struct:priq_classstats
133 int32_t cl_pri; /* priority */
156 int pif_maxpri; /* max priority in use */
H A Dpktsched_tcq.h74 u_int32_t priority; member in struct:tcq_classstats
105 int32_t cl_pri; /* priority */
128 int tif_maxpri; /* max priority in use */
H A Dpktsched_cbq.c191 cbq_add_queue(cbq_state_t *cbqp, u_int32_t qlimit, u_int32_t priority, argument
223 if (priority >= CBQ_MAXPRI)
300 cl = rmc_newclass(priority, &cbqp->ifnp, ns_per_byte,
323 qid, priority, qlimit, flags, CBQCLF_BITS);
479 statsp->priority = cl->pri_;
H A Dpktsched_fairq.h118 u_int32_t priority; member in struct:fairq_classstats
173 int cl_pri; /* priority */
197 int fif_maxpri; /* max priority in use */
/darwin-on-arm/xnu/bsd/net/altq/
H A Daltq_fairq.c188 err = fairq_add_queue(fif, a->priority, a->qlimit, a->bandwidth,
H A Daltq_priq.c59 * priority queue
154 err = priq_add_queue(pif, a->priority, a->qlimit,

Completed in 187 milliseconds

123