/freebsd-10-stable/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-stable/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-stable/lib/libc/gen/ |
H A D | nice.c | 48 int saverrno, prio; local 52 prio = getpriority(PRIO_PROCESS, 0); 53 if (prio == -1 && errno != 0) 55 if (setpriority(PRIO_PROCESS, 0, prio + incr) == -1) {
|
/freebsd-10-stable/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-stable/sys/netpfil/ipfw/ |
H A D | dn_sched_prio.c | 88 int prio = q->fs->fs.par[0]; local 90 if (test_bit(prio, &si->bitmap) == 0) { 92 __set_bit(prio, &si->bitmap); 93 si->q_array[prio] = q; 95 q = si->q_array[prio]; 119 int prio; local 124 prio = ffs(si->bitmap) - 1; 127 q = si->q_array[prio]; 135 si->q_array[prio] = NULL; 136 __clear_bit(prio, 164 int prio = q->fs->fs.par[0]; local 198 int prio = q->fs->fs.par[0]; local [all...] |
/freebsd-10-stable/sys/kern/ |
H A D | ksched.c | 147 param->sched_priority = rtpprio_to_p4prio(rtp.prio); 149 if (PRI_MIN_TIMESHARE < rtp.prio) 157 param->sched_priority = tsprio_to_p4prio(rtp.prio); 182 rtp.prio = p4prio_to_rtpprio(param->sched_priority); 194 rtp.prio = p4prio_to_tsprio(param->sched_priority); 224 ksched_get_priority_max(struct ksched *ksched, int policy, int *prio) argument 232 *prio = P1B_PRIO_MAX; 235 *prio = PRI_MAX_TIMESHARE - PRI_MIN_TIMESHARE; 245 ksched_get_priority_min(struct ksched *ksched, int policy, int *prio) argument 253 *prio [all...] |
/freebsd-10-stable/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-stable/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-stable/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-stable/tests/sys/mqueue/ |
H A D | mqtest2.c | 50 unsigned int prio; local 62 status = mq_receive(mq, buf, attr.mq_msgsize, &prio); 68 if (prio != PRIO) 70 prio);
|
H A D | mqtest3.c | 53 unsigned int prio; local 70 status = mq_receive(mq, buf, attr.mq_msgsize, &prio); 76 if (prio != PRIO) 77 err(4, "priority is incorrect: %d", prio);
|
H A D | mqtest4.c | 53 unsigned int prio; local 70 status = mq_receive(mq, buf, attr.mq_msgsize, &prio); 76 if (prio != PRIO) 78 prio);
|
H A D | mqtest5.c | 61 int prio, j, i; local 86 status = mq_receive(mq, buf, attr.mq_msgsize, &prio); 92 if (prio != PRIO) 94 prio);
|
/freebsd-10-stable/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-stable/sys/cddl/compat/opensolaris/kern/ |
H A D | opensolaris_taskq.c | 119 int mflag, prio; local 129 prio = !!(flags & TQ_FRONT); 138 TASK_INIT(&task->tqent_task, prio, taskq_run, task); 156 int prio; local 162 prio = !!(flags & TQ_FRONT); 167 TASK_INIT(&task->tqent_task, prio, taskq_run_ent, task);
|
/freebsd-10-stable/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-stable/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-stable/sys/netinet/ |
H A D | sctp_ss_functions.c | 352 strq->ss_params.prio.priority = 0; 354 TAILQ_REMOVE(&asoc->ss_data.out_wheel, TAILQ_FIRST(&asoc->ss_data.out_wheel), ss_params.prio.next_spoke); 355 strq->ss_params.prio.next_spoke.tqe_next = NULL; 356 strq->ss_params.prio.next_spoke.tqe_prev = NULL; 369 strq->ss_params.prio.next_spoke.tqe_next = NULL; 370 strq->ss_params.prio.next_spoke.tqe_prev = NULL; 372 strq->ss_params.prio.priority = with_strq->ss_params.prio.priority; 374 strq->ss_params.prio.priority = 0; 391 (strq->ss_params.prio [all...] |