/freebsd-10.1-release/lib/libthr/thread/ |
H A D | thr_setprio.c | 41 _pthread_setprio(pthread_t pthread, int prio) argument 47 param.sched_priority = prio; 53 pthread->attr.prio == prio) { 54 pthread->attr.prio = prio; 62 pthread->attr.prio = prio;
|
H A D | thr_setschedparam.c | 63 pthread->attr.prio == param->sched_priority)) { 64 pthread->attr.prio = param->sched_priority; 73 pthread->attr.prio = param->sched_priority;
|
H A D | thr_getschedparam.c | 65 param->sched_priority = pthread->attr.prio;
|
H A D | thr_kern.c | 76 param->sched_priority = RTP_PRIO_MAX - rtp->prio; 80 param->sched_priority = RTP_PRIO_MAX - rtp->prio; 97 rtp->prio = RTP_PRIO_MAX - param->sched_priority; 101 rtp->prio = RTP_PRIO_MAX - param->sched_priority; 106 rtp->prio = 0;
|
/freebsd-10.1-release/lib/libc/gen/ |
H A D | nice.c | 49 int prio; local 52 prio = getpriority(PRIO_PROCESS, 0); 53 if (prio == -1 && errno) 55 return (setpriority(PRIO_PROCESS, 0, prio + incr));
|
/freebsd-10.1-release/lib/libkse/thread/ |
H A D | thr_setprio.c | 37 int _pthread_setprio(pthread_t pthread, int prio); 42 _pthread_setprio(pthread_t pthread, int prio) argument 48 param.sched_priority = prio;
|
H A D | thr_priority_queue.c | 44 static void pq_insert_prio_list(pq_queue_t *pq, int prio); 140 int prio = pthread->active_priority; local 157 TAILQ_REMOVE(&pq->pq_lists[prio].pl_head, pthread, pqe); 169 int prio; local 179 prio = pthread->active_priority; 180 TAILQ_INSERT_HEAD(&pq->pq_lists[prio].pl_head, pthread, pqe); 181 if (pq->pq_lists[prio].pl_queued == 0) 183 pq_insert_prio_list(pq, prio); 195 int prio; local 205 prio 301 pq_insert_prio_list(pq_queue_t *pq, int prio) argument [all...] |
H A D | thr_attr_getschedparam.c | 51 param->sched_priority = (*attr)->prio;
|
H A D | thr_attr_setschedparam.c | 57 (*attr)->prio = param->sched_priority;
|
/freebsd-10.1-release/usr.bin/renice/ |
H A D | renice.c | 70 int errs, incr, prio, which, who; local 85 if (getnum("priority", *argv, &prio)) 123 errs += donice(which, who, prio, incr); 129 donice(int which, int who, int prio, int incr) argument 140 prio = oldprio + prio; 141 if (prio > PRIO_MAX) 142 prio = PRIO_MAX; 143 if (prio < PRIO_MIN) 144 prio [all...] |
/freebsd-10.1-release/sys/netpfil/ipfw/ |
H A D | dn_sched_prio.c | 82 int prio = q->fs->fs.par[0]; local 84 if (test_bit(prio, &si->bitmap) == 0) { 86 __set_bit(prio, &si->bitmap); 87 si->q_array[prio] = q; 89 q = si->q_array[prio]; 113 int prio; local 118 prio = ffs(si->bitmap) - 1; 121 q = si->q_array[prio]; 129 si->q_array[prio] = NULL; 130 __clear_bit(prio, 158 int prio = q->fs->fs.par[0]; local 192 int prio = q->fs->fs.par[0]; local [all...] |
/freebsd-10.1-release/sys/kern/ |
H A D | ksched.c | 157 param->sched_priority = rtpprio_to_p4prio(rtp.prio); 159 if (PRI_MIN_TIMESHARE < rtp.prio) 166 param->sched_priority = tsprio_to_p4prio(rtp.prio); 193 rtp.prio = p4prio_to_rtpprio(param->sched_priority); 209 rtp.prio = p4prio_to_tsprio(param->sched_priority); 240 ksched_get_priority_max(struct ksched *ksched, int policy, int *prio) argument 248 *prio = RTP_PRIO_MAX; 252 *prio = PRI_MAX_TIMESHARE - PRI_MIN_TIMESHARE; 263 ksched_get_priority_min(struct ksched *ksched, int policy, int *prio) argument 271 *prio [all...] |
/freebsd-10.1-release/lib/librt/ |
H A D | mq.c | 194 unsigned *prio, const struct timespec *timeout) 197 return __sys_kmq_timedreceive(mqd->oshandle, buf, len, prio, timeout); 202 unsigned *prio, const struct timespec *timeout) 207 ret = __sys_kmq_timedreceive(mqd->oshandle, buf, len, prio, timeout); 213 __mq_receive(mqd_t mqd, char *buf, size_t len, unsigned *prio) argument 216 return __sys_kmq_timedreceive(mqd->oshandle, buf, len, prio, NULL); 220 __mq_receive_cancel(mqd_t mqd, char *buf, size_t len, unsigned *prio) argument 225 ret = __sys_kmq_timedreceive(mqd->oshandle, buf, len, prio, NULL); 231 unsigned prio, const struct timespec *timeout) 234 return __sys_kmq_timedsend(mqd->oshandle, buf, len, prio, timeou 193 __mq_timedreceive(mqd_t mqd, char *buf, size_t len, unsigned *prio, const struct timespec *timeout) argument 201 __mq_timedreceive_cancel(mqd_t mqd, char *buf, size_t len, unsigned *prio, const struct timespec *timeout) argument 230 __mq_timedsend(mqd_t mqd, char *buf, size_t len, unsigned prio, const struct timespec *timeout) argument 238 __mq_timedsend_cancel(mqd_t mqd, char *buf, size_t len, unsigned prio, const struct timespec *timeout) argument 250 __mq_send(mqd_t mqd, char *buf, size_t len, unsigned prio) argument 258 __mq_send_cancel(mqd_t mqd, char *buf, size_t len, unsigned prio) argument [all...] |
/freebsd-10.1-release/sys/sys/ |
H A D | lockmgr.h | 70 const char *wmesg, int prio, int timo, const char *file, int line); 81 void lockinit(struct lock *lk, int prio, const char *wmesg, int timo, 95 int prio, int timo, const char *file, int line) 99 NULL, wmesg, prio, timo, file, line)); 104 const char *wmesg, int prio, int timo, const char *file, int line) 108 NULL, wmesg, prio, timo, file, line)); 117 #define lockmgr_args(lk, flags, ilk, wmesg, prio, timo) \ 118 _lockmgr_args((lk), (flags), (ilk), (wmesg), (prio), (timo), \ 120 #define lockmgr_args_rw(lk, flags, ilk, wmesg, prio, timo) \ 121 _lockmgr_args_rw((lk), (flags), (ilk), (wmesg), (prio), (tim 94 _lockmgr_args(struct lock *lk, u_int flags, struct mtx *ilk, const char *wmesg, int prio, int timo, const char *file, int line) argument 103 _lockmgr_args_rw(struct lock *lk, u_int flags, struct rwlock *ilk, const char *wmesg, int prio, int timo, const char *file, int line) argument [all...] |
H A D | sched.h | 94 void sched_lend_prio(struct thread *td, u_char prio); 97 void sched_prio(struct thread *td, u_char prio); 98 void sched_sleep(struct thread *td, int prio); 101 void sched_unlend_prio(struct thread *td, u_char prio); 102 void sched_user_prio(struct thread *td, u_char prio);
|
/freebsd-10.1-release/tools/regression/mqueue/mqtest2/ |
H A D | mqtest2.c | 41 int prio, j, i; local 54 status = mq_receive(mq, buf, attr.mq_msgsize, &prio); 60 if (prio != PRIO) 62 prio); 72 int i, j, prio; local
|
/freebsd-10.1-release/usr.sbin/rtprio/ |
H A D | rtprio.c | 79 warnx("realtime priority %d", rtp.prio); 85 warnx("idle priority %d", rtp.prio); 97 rtp.prio = 0; 103 rtp.prio = parseint(argv[1], "priority"); 146 "usage: [id|rt]prio", 147 " [id|rt]prio [-]pid", 148 " [id|rt]prio priority command [args]", 149 " [id|rt]prio priority -pid", 150 " [id|rt]prio -t command [args]", 151 " [id|rt]prio [all...] |
/freebsd-10.1-release/contrib/ofed/management/infiniband-diags/src/ |
H A D | sminfo.c | 58 fprintf(stderr, "Usage: %s [-d(ebug) -e(rr_show) -s state -p prio -a activity -D(irect) -G(uid) -V(ersion) -C ca_name -P ca_port " 92 int prio = 0, state = SMINFO_STANDBY; local 157 prio = strtoul(optarg, 0, 0); 186 mad_encode_field(sminfo, IB_SMINFO_PRIO_F, &prio); 199 mad_decode_field(sminfo, IB_SMINFO_PRIO_F, &prio); 203 portid.lid, guid, act, prio, state, STATESTR(state));
|
/freebsd-10.1-release/tools/regression/mqueue/mqtest3/ |
H A D | mqtest3.c | 45 int prio, j, i; local 63 status = mq_receive(mq, buf, attr.mq_msgsize, &prio); 69 if (prio != PRIO) 70 err(4, "priority is incorrect: %d", prio); 80 int i, j, prio; local
|
/freebsd-10.1-release/tools/regression/mqueue/mqtest4/ |
H A D | mqtest4.c | 47 int prio, j, i; local 65 status = mq_receive(mq, buf, attr.mq_msgsize, &prio); 71 if (prio != PRIO) 73 prio); 83 int i, j, prio; local
|
/freebsd-10.1-release/tools/regression/mqueue/mqtest5/ |
H A D | mqtest5.c | 55 int prio, j, i; local 80 status = mq_receive(mq, buf, attr.mq_msgsize, &prio); 86 if (prio != PRIO) 88 prio); 98 int i, j, prio; local
|
/freebsd-10.1-release/sys/cddl/compat/opensolaris/kern/ |
H A D | opensolaris_taskq.c | 118 int mflag, prio; local 128 prio = !!(flags & TQ_FRONT); 137 TASK_INIT(&task->tqent_task, prio, taskq_run, task); 155 int prio; local 161 prio = !!(flags & TQ_FRONT); 166 TASK_INIT(&task->tqent_task, prio, taskq_run_ent, task);
|
/freebsd-10.1-release/tools/regression/priv/ |
H A D | priv_sched_rtprio.c | 111 rtp.prio = 0; 134 rtp.prio = 0; 157 rtp.prio = 0; 180 rtp.prio = 0; 203 rtp.prio = 0; 226 rtp.prio = 0; 249 rtp.prio = 0; 272 rtp.prio = 0; 295 rtp.prio = 0;
|
/freebsd-10.1-release/contrib/wpa/src/rsn_supp/ |
H A D | preauth.h | 24 int prio, int preauth); 62 int prio, int preauth) 60 pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid, int prio, int preauth) argument
|
/freebsd-10.1-release/contrib/top/ |
H A D | commands.c | 468 int prio; local 483 procnum = scanint(str, &prio); 488 prio = -prio; 493 if (procnum == -1 || prio < PRIO_MIN || prio > PRIO_MAX) 518 else if (setpriority(PRIO_PROCESS, procnum, prio) == -1)
|