Searched refs:prio (Results 1 - 25 of 108) sorted by relevance

12345

/freebsd-10.1-release/lib/libthr/thread/
H A Dthr_setprio.c41 _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 Dthr_setschedparam.c63 pthread->attr.prio == param->sched_priority)) {
64 pthread->attr.prio = param->sched_priority;
73 pthread->attr.prio = param->sched_priority;
H A Dthr_getschedparam.c65 param->sched_priority = pthread->attr.prio;
H A Dthr_kern.c76 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 Dnice.c49 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 Dthr_setprio.c37 int _pthread_setprio(pthread_t pthread, int prio);
42 _pthread_setprio(pthread_t pthread, int prio) argument
48 param.sched_priority = prio;
H A Dthr_priority_queue.c44 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 Dthr_attr_getschedparam.c51 param->sched_priority = (*attr)->prio;
H A Dthr_attr_setschedparam.c57 (*attr)->prio = param->sched_priority;
/freebsd-10.1-release/usr.bin/renice/
H A Drenice.c70 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 Ddn_sched_prio.c82 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 Dksched.c157 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 Dmq.c194 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 Dlockmgr.h70 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 Dsched.h94 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 Dmqtest2.c41 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 Drtprio.c79 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 Dsminfo.c58 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 Dmqtest3.c45 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 Dmqtest4.c47 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 Dmqtest5.c55 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 Dopensolaris_taskq.c118 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 Dpriv_sched_rtprio.c111 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 Dpreauth.h24 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 Dcommands.c468 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)

Completed in 170 milliseconds

12345