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

12345

/freebsd-10-stable/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-stable/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-stable/lib/libc/gen/
H A Dnice.c48 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 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-stable/sys/netpfil/ipfw/
H A Ddn_sched_prio.c88 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 Dksched.c147 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 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-stable/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-stable/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-stable/tests/sys/mqueue/
H A Dmqtest2.c50 unsigned int prio; local
62 status = mq_receive(mq, buf, attr.mq_msgsize, &prio);
68 if (prio != PRIO)
70 prio);
H A Dmqtest3.c53 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 Dmqtest4.c53 unsigned int prio; local
70 status = mq_receive(mq, buf, attr.mq_msgsize, &prio);
76 if (prio != PRIO)
78 prio);
H A Dmqtest5.c61 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 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-stable/sys/cddl/compat/opensolaris/kern/
H A Dopensolaris_taskq.c119 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 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-stable/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-stable/sys/netinet/
H A Dsctp_ss_functions.c352 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...]

Completed in 217 milliseconds

12345