pri 103 include/sys/prex.h int thread_getpri(thread_t t, int *pri); pri 104 include/sys/prex.h int thread_setpri(thread_t t, int pri); pri 53 include/sys/syslog.h #define LOG_MAKEPRI(fac, pri) (((fac) << 3) | (pri)) pri 88 include/sys/syslog.h #define LOG_MASK(pri) (1 << (pri)) /* mask for one priority */ pri 89 include/sys/syslog.h #define LOG_UPTO(pri) ((1 << ((pri)+1)) - 1) /* all priorities through pri */ pri 61 sys/include/irq.h #define ISTPRI(pri) (PRI_IST + (IPL_HIGH - pri)) pri 82 sys/kern/irq.c irq_attach(int vector, int pri, int shared, pri 96 sys/kern/irq.c irq->priority = pri; pri 105 sys/kern/irq.c irq->thread = kthread_create(&irq_thread, irq, ISTPRI(pri)); pri 114 sys/kern/irq.c interrupt_unmask(vector, pri); pri 117 sys/kern/irq.c DPRINTF(("IRQ%d attached priority=%d\n", vector, pri)); pri 104 sys/kern/sched.c int pri; pri 106 sys/kern/sched.c for (pri = 0; pri < MINPRI; pri++) pri 107 sys/kern/sched.c if (!queue_empty(&runq[pri])) pri 109 sys/kern/sched.c return pri; pri 471 sys/kern/sched.c sched_start(thread_t t, int pri, int policy) pri 476 sys/kern/sched.c t->priority = pri; pri 477 sys/kern/sched.c t->basepri = pri; pri 581 sys/kern/sched.c sched_setpri(thread_t t, int basepri, int pri) pri 591 sys/kern/sched.c t->priority = pri; pri 593 sys/kern/sched.c if (pri != maxpri) pri 603 sys/kern/sched.c t->priority = pri; pri 606 sys/kern/sched.c t->priority = pri; pri 301 sys/kern/thread.c int pri, policy; pri 325 sys/kern/thread.c pri = sched_getpri(t); pri 326 sys/kern/thread.c if (copyout(&pri, param, sizeof(pri))) pri 331 sys/kern/thread.c if (copyin(param, &pri, sizeof(pri))) { pri 338 sys/kern/thread.c if (pri < 0) pri 339 sys/kern/thread.c pri = 0; pri 340 sys/kern/thread.c else if (pri >= PRI_IDLE) pri 341 sys/kern/thread.c pri = PRI_IDLE - 1; pri 349 sys/kern/thread.c if (pri <= PRI_REALTIME && !task_capable(CAP_NICE)) { pri 360 sys/kern/thread.c if (t->priority != t->basepri && pri > t->priority) pri 361 sys/kern/thread.c pri = t->priority; pri 363 sys/kern/thread.c mutex_setpri(t, pri); pri 364 sys/kern/thread.c sched_setpri(t, pri, pri); pri 525 sys/kern/thread.c kthread_create(void (*entry)(void *), void *arg, int pri) pri 544 sys/kern/thread.c sched_start(t, pri, SCHED_FIFO); pri 353 sys/sync/mutex.c mutex_setpri(thread_t t, int pri) pri 356 sys/sync/mutex.c if (t->mutex_waiting && pri < t->priority) pri 44 usr/lib/posix/gen/syslog.c syslog(int pri, const char *fmt, ...) pri 90 usr/lib/posix/process/fork_nommu.c int error, sts, pri; pri 134 usr/lib/posix/process/fork_nommu.c thread_getpri(t, &pri); pri 135 usr/lib/posix/process/fork_nommu.c thread_setpri(t, pri + 1); pri 150 usr/lib/posix/process/fork_nommu.c thread_getpri(t, &pri); pri 151 usr/lib/posix/process/fork_nommu.c thread_setpri(t, pri - 1); pri 42 usr/lib/posix/process/getpriority.c int pri; pri 62 usr/lib/posix/process/getpriority.c thread_getpri(thread_self(), &pri); pri 64 usr/lib/posix/process/getpriority.c pri -= PRI_DEFAULT; pri 66 usr/lib/posix/process/getpriority.c if (pri < MINPRI) pri 67 usr/lib/posix/process/getpriority.c pri = MINPRI; pri 68 usr/lib/posix/process/getpriority.c if (pri > MAXPRI) pri 69 usr/lib/posix/process/getpriority.c pri = MAXPRI; pri 71 usr/lib/posix/process/getpriority.c return pri; pri 44 usr/lib/posix/process/nice.c int pri; pri 48 usr/lib/posix/process/nice.c pri = getpriority(PRIO_PROCESS, 0); pri 49 usr/lib/posix/process/nice.c if (pri == -1 && errno) pri 51 usr/lib/posix/process/nice.c if (setpriority(PRIO_PROCESS, 0, pri + incr) != 0) pri 45 usr/lib/posix/process/setpriority.c setpriority(int which, int who, int pri) pri 68 usr/lib/posix/process/setpriority.c if (pri < MINPRI) pri 69 usr/lib/posix/process/setpriority.c pri = MINPRI; pri 70 usr/lib/posix/process/setpriority.c if (pri > MAXPRI) pri 71 usr/lib/posix/process/setpriority.c pri = MAXPRI; pri 73 usr/lib/posix/process/setpriority.c val = PRI_DEFAULT + pri; pri 52 usr/lib/posix/process/waitpid.c int pri; pri 56 usr/lib/posix/process/waitpid.c thread_getpri(self, &pri); pri 57 usr/lib/posix/process/waitpid.c thread_setpri(self, pri - 1); pri 81 usr/lib/posix/process/waitpid.c thread_setpri(self, pri); pri 35 usr/lib/prex/syscalls/thread_getpri.c thread_getpri(thread_t t, int *pri) pri 38 usr/lib/prex/syscalls/thread_getpri.c return thread_schedparam(t, 0, pri); pri 35 usr/lib/prex/syscalls/thread_setpri.c thread_setpri(thread_t t, int pri) pri 38 usr/lib/prex/syscalls/thread_setpri.c return thread_schedparam(t, 1, &pri); pri 63 usr/sample/bench/bench.c int i, pri, error; pri 71 usr/sample/bench/bench.c thread_getpri(thread_self(), &pri); pri 72 usr/sample/bench/bench.c thread_setpri(thread_self(), pri - 1); pri 69 usr/sample/mutex/mutex.c int pri; pri 71 usr/sample/mutex/mutex.c if (thread_getpri(th_1, &pri) == 0) pri 72 usr/sample/mutex/mutex.c printf("th_1: pri=%d\n", pri); pri 74 usr/sample/mutex/mutex.c if (thread_getpri(th_2, &pri) == 0) pri 75 usr/sample/mutex/mutex.c printf("th_2: pri=%d\n", pri); pri 77 usr/sample/mutex/mutex.c if (thread_getpri(th_3, &pri) == 0) pri 78 usr/sample/mutex/mutex.c printf("th_3: pri=%d\n", pri);