/freebsd/sys/netpfil/ipfw/ |
H A D | dn_sched_prio.c | 89 int prio = q->fs->fs.par[0]; in prio_enqueue() local 91 if (test_bit(prio, &si->bitmap) == 0) { in prio_enqueue() 93 __set_bit(prio, &si->bitmap); in prio_enqueue() 94 si->q_array[prio] = q; in prio_enqueue() 96 q = si->q_array[prio]; in prio_enqueue() 120 int prio; in prio_dequeue() local 125 prio = ffs(si->bitmap) - 1; in prio_dequeue() 128 q = si->q_array[prio]; in prio_dequeue() 136 si->q_array[prio] = NULL; in prio_dequeue() 137 __clear_bit(prio, &si->bitmap); in prio_dequeue() [all …]
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_fs_tree.c |
|
H A D | fs_core.h | 60 * a new flow table. Meaning the last flow table in a TYPE_PRIO prio in one 62 * found in any prio in any next namespace, but skip the entire containing 63 * TYPE_PRIO_CHAINS prio. 66 * namespace inside a containing TYPE_PRIO_CHAINS prio. 231 unsigned int prio; 308 #define fs_for_each_ns_or_ft_reverse(pos, prio) \ 309 list_for_each_entry_reverse(pos, &(prio)->node.children, list) 311 #define fs_for_each_ns_or_ft(pos, prio) \ 312 list_for_each_entry(pos, (&(prio)->node.children), list) 317 #define fs_for_each_ns(pos, prio) \ 123 unsigned int prio; global() member 206 fs_for_each_ft(pos,prio) global() argument 210 fs_for_each_ft_reverse(pos,prio) global() argument 215 fs_for_each_ns(pos,prio) global() argument 220 fs_for_each_ns_or_ft_reverse(pos,prio) global() argument 225 fs_for_each_ns_or_ft(pos,prio) global() argument 230 fs_for_each_ns_or_ft_continue_reverse(pos,prio) global() argument 235 fs_for_each_ns_or_ft_continue(pos,prio) global() argument [all...] |
/freebsd/usr.bin/renice/ |
H A D | renice.c | 59 int errs = 0, prio = 0, who = 0, which = PRIO_PROCESS; in main() local 91 if (getnum("priority", *argv, &prio)) in main() 118 errs += donice(which, who, prio, incr); in main() 126 donice(int which, int who, int prio, bool incr) in donice() argument 137 prio = oldprio + prio; in donice() 138 if (prio > PRIO_MAX) in donice() 139 prio = PRIO_MAX; in donice() 140 if (prio < PRIO_MIN) in donice() 141 prio = PRIO_MIN; in donice() 142 if (setpriority(which, who, prio) < 0) { in donice() [all …]
|
/freebsd/lib/libthr/thread/ |
H A D | thr_setprio.c | 41 _pthread_setprio(pthread_t pthread, int prio) in _pthread_setprio() argument 47 param.sched_priority = prio; in _pthread_setprio() 53 pthread->attr.prio == prio) { in _pthread_setprio() 54 pthread->attr.prio = prio; in _pthread_setprio() 62 pthread->attr.prio = prio; in _pthread_setprio()
|
H A D | thr_kern.c | 72 param->sched_priority = RTP_PRIO_MAX - rtp->prio; in _rtp_to_schedparam() 76 param->sched_priority = RTP_PRIO_MAX - rtp->prio; in _rtp_to_schedparam() 93 rtp->prio = RTP_PRIO_MAX - param->sched_priority; in _schedparam_to_rtp() 97 rtp->prio = RTP_PRIO_MAX - param->sched_priority; in _schedparam_to_rtp() 102 rtp->prio = 0; in _schedparam_to_rtp()
|
/freebsd/sys/sys/ |
H A D | blockcount.h | 43 int prio); 79 int prio) in _blockcount_wait() argument 81 KASSERT((prio & ~PRIMASK) == 0, ("%s: invalid prio %x", __func__, prio)); in _blockcount_wait() 83 while (_blockcount_sleep(bc, lo, wmesg, prio) == EAGAIN) in _blockcount_wait() 87 #define blockcount_sleep(bc, lo, wmesg, prio) \ argument 88 _blockcount_sleep((bc), (struct lock_object *)(lo), (wmesg), (prio)) 89 #define blockcount_wait(bc, lo, wmesg, prio) \ argument 90 _blockcount_wait((bc), (struct lock_object *)(lo), (wmesg), (prio))
|
H A D | lockmgr.h | 71 const char *wmesg, int prio, int timo, const char *file, int line); 88 void lockinit(struct lock *lk, int prio, const char *wmesg, int timo, 102 int prio, int timo, const char *file, int line) in _lockmgr_args() argument 106 NULL, wmesg, prio, timo, file, line)); in _lockmgr_args() 111 const char *wmesg, int prio, int timo, const char *file, int line) in _lockmgr_args_rw() argument 115 NULL, wmesg, prio, timo, file, line)); in _lockmgr_args_rw() 125 #define lockmgr_args(lk, flags, ilk, wmesg, prio, timo) \ argument 126 _lockmgr_args((lk), (flags), (ilk), (wmesg), (prio), (timo), \ 128 #define lockmgr_args_rw(lk, flags, ilk, wmesg, prio, timo) \ argument 129 _lockmgr_args_rw((lk), (flags), (ilk), (wmesg), (prio), (timo), \
|
H A D | sched.h | 96 void sched_ithread_prio(struct thread *td, u_char prio); 97 void sched_lend_prio(struct thread *td, u_char prio); 101 void sched_prio(struct thread *td, u_char prio); 102 void sched_sleep(struct thread *td, int prio); 105 void sched_unlend_prio(struct thread *td, u_char prio); 106 void sched_user_prio(struct thread *td, u_char prio);
|
/freebsd/lib/librt/ |
H A D | mq.c | 181 unsigned *prio, const struct timespec *timeout) in __mq_getattr() 184 return __sys_kmq_timedreceive(mqd->oshandle, buf, len, prio, timeout); 189 unsigned *prio, const struct timespec *timeout) in __mq_setattr() 194 ret = __sys_kmq_timedreceive(mqd->oshandle, buf, len, prio, timeout); in __mq_timedreceive() 200 __mq_receive(mqd_t mqd, char *buf, size_t len, unsigned *prio) in __mq_timedreceive_cancel() 203 return __sys_kmq_timedreceive(mqd->oshandle, buf, len, prio, NULL); in __mq_timedreceive_cancel() 207 __mq_receive_cancel(mqd_t mqd, char *buf, size_t len, unsigned *prio) in __mq_timedreceive_cancel() 212 ret = __sys_kmq_timedreceive(mqd->oshandle, buf, len, prio, NULL); in __mq_receive() argument 218 unsigned prio, const struct timespec *timeout) 221 return __sys_kmq_timedsend(mqd->oshandle, buf, len, prio, timeou in __mq_receive_cancel() 193 __mq_timedreceive(mqd_t mqd,char * buf,size_t len,unsigned * prio,const struct timespec * timeout) __mq_timedreceive() argument 201 __mq_timedreceive_cancel(mqd_t mqd,char * buf,size_t len,unsigned * prio,const struct timespec * timeout) __mq_timedreceive_cancel() argument 219 __mq_receive_cancel(mqd_t mqd,char * buf,size_t len,unsigned * prio) __mq_receive_cancel() argument 230 __mq_timedsend(mqd_t mqd,char * buf,size_t len,unsigned prio,const struct timespec * timeout) __mq_timedsend() argument 238 __mq_timedsend_cancel(mqd_t mqd,char * buf,size_t len,unsigned prio,const struct timespec * timeout) __mq_timedsend_cancel() argument 249 __mq_send(mqd_t mqd,char * buf,size_t len,unsigned prio) __mq_send() argument 257 __mq_send_cancel(mqd_t mqd,char * buf,size_t len,unsigned prio) __mq_send_cancel() argument [all...] |
/freebsd/contrib/mandoc/ |
H A D | tag.c | 42 int prio; member 86 tag_put(const char *s, int prio, struct roff_node *n) in tag_put() argument 94 assert(prio <= TAG_FALLBACK); in tag_put() 130 if (*se != '\0' && prio < TAG_WEAK) in tag_put() 131 prio = TAG_WEAK; in tag_put() 152 else if (entry->prio < prio) in tag_put() 161 else if (entry->prio > prio || prio == TAG_FALLBACK) { in tag_put() 168 if (prio == TAG_FALLBACK) { in tag_put() 169 entry->prio = TAG_DELETE; in tag_put() 182 entry->prio = prio; in tag_put()
|
/freebsd/sys/kern/ |
H A D | ksched.c | 147 param->sched_priority = rtpprio_to_p4prio(rtp.prio); in ksched_getparam() 149 if (PRI_MIN_TIMESHARE < rtp.prio) in ksched_getparam() 157 param->sched_priority = tsprio_to_p4prio(rtp.prio); in ksched_getparam() 182 rtp.prio = p4prio_to_rtpprio(param->sched_priority); in ksched_setscheduler() 194 rtp.prio = p4prio_to_tsprio(param->sched_priority); in ksched_setscheduler() 224 ksched_get_priority_max(struct ksched *ksched, int policy, int *prio) in ksched_get_priority_max() argument 232 *prio = P1B_PRIO_MAX; in ksched_get_priority_max() 235 *prio = PRI_MAX_TIMESHARE - PRI_MIN_TIMESHARE; in ksched_get_priority_max() 245 ksched_get_priority_min(struct ksched *ksched, int policy, int *prio) in ksched_get_priority_min() argument 253 *prio = P1B_PRIO_MIN; in ksched_get_priority_min() [all …]
|
H A D | sched_4bsd.c | 133 static void sched_priority(struct thread *td, u_char prio); 783 "prio:%d", td->td_priority); in sched_exit() 794 "prio:%d", child->td_priority); in sched_exit_thread() 856 sched_priority(struct thread *td, u_char prio) in sched_priority() argument 860 "prio:%d", td->td_priority, "new prio:%d", prio, KTR_ATTR_LINKED, in sched_priority() 862 SDT_PROBE3(sched, , , change__pri, td, td->td_proc, prio); in sched_priority() 863 if (td != curthread && prio > td->td_priority) { in sched_priority() 865 "lend prio", "pri in sched_priority() 885 sched_lend_prio(struct thread * td,u_char prio) sched_lend_prio() argument 901 sched_unlend_prio(struct thread * td,u_char prio) sched_unlend_prio() argument 918 sched_prio(struct thread * td,u_char prio) sched_prio() argument 945 sched_ithread_prio(struct thread * td,u_char prio) sched_ithread_prio() argument 954 sched_user_prio(struct thread * td,u_char prio) sched_user_prio() argument 965 sched_lend_user_prio(struct thread * td,u_char prio) sched_lend_user_prio() argument 981 sched_lend_user_prio_cond(struct thread * td,u_char prio) sched_lend_user_prio_cond() argument [all...] |
H A D | kern_synch.c | 395 int prio) in _blockcount_wakeup() 406 catch = (prio & PCATCH) != 0; 407 drop = (prio & PDROP) != 0; 408 prio &= PRIMASK; 442 ret = sleepq_wait_sig(wchan, prio); in _blockcount_sleep() 444 sleepq_wait(wchan, prio); in _blockcount_sleep() 645 kern_yield(int prio) in ast_scheduler() 652 if (prio == PRI_USER) 653 prio = td->td_user_pri; in synch_setup() 654 if (prio > in synch_setup() 411 _blockcount_sleep(blockcount_t * bc,struct lock_object * lock,const char * wmesg,int prio) _blockcount_sleep() argument 678 kern_yield(int prio) kern_yield() argument [all...] |
/freebsd/lib/libc/gen/ |
H A D | nice.c | 44 int saverrno, prio; in nice() local 48 prio = getpriority(PRIO_PROCESS, 0); in nice() 49 if (prio == -1 && errno != 0) in nice() 51 if (setpriority(PRIO_PROCESS, 0, prio + incr) == -1) { in nice()
|
/freebsd/sbin/pfctl/tests/files/ |
H A D | pf0101.in | 1 # test prio 3 pass set prio 3 5 pass out on lo1000000 proto tcp from any to any port 22 set prio (5 2) 7 pass proto udp from any to { 127.0.0.1 127.0.0.2 } port 53 set prio 4
|
H A D | pf0039.ok | 14 o_prio = "set prio 2" 16 pass in log quick on lo0 inet proto tcp all user = 3 group = 65534 flags S/SA tos 0x08 set ( prio 2… 17 pass in log quick on lo0 inet proto tcp all user = 3 group = 0 flags S/SA tos 0x08 set ( prio 2 ) k… 18 pass in log quick on lo0 inet proto tcp all user = 0 group = 65534 flags S/SA tos 0x08 set ( prio 2… 19 pass in log quick on lo0 inet proto tcp all user = 0 group = 0 flags S/SA tos 0x08 set ( prio 2 ) k… 20 pass in log quick on lo0 inet proto icmp all icmp-type echorep code 0 set ( prio 2 ) keep state lab… 22 pass in log quick on lo0 inet proto tcp all flags S/SA tos 0x08 set ( prio 2 ) keep state label "bl…
|
H A D | pf0101.ok | 1 pass all flags S/SA set ( prio 3 ) keep state 2 pass out on lo1000000 proto tcp from any to any port = ssh flags S/SA set ( prio(5, 2) ) keep state 3 pass inet proto udp from any to 127.0.0.1 port = domain set ( prio 4 ) keep state 4 pass inet proto udp from any to 127.0.0.2 port = domain set ( prio 4 ) keep state
|
/freebsd/tools/regression/priv/ |
H A D | priv_sched_rtprio.c | 109 rtp.prio = 0; in priv_sched_rtprio_curproc_normal() 132 rtp.prio = 0; in priv_sched_rtprio_curproc_idle() 155 rtp.prio = 0; in priv_sched_rtprio_curproc_realtime() 178 rtp.prio = 0; in priv_sched_rtprio_myproc_normal() 201 rtp.prio = 0; in priv_sched_rtprio_myproc_idle() 224 rtp.prio = 0; in priv_sched_rtprio_myproc_realtime() 247 rtp.prio = 0; in priv_sched_rtprio_aproc_normal() 270 rtp.prio = 0; in priv_sched_rtprio_aproc_idle() 293 rtp.prio = 0; in priv_sched_rtprio_aproc_realtime()
|
/freebsd/sys/arm/arm/ |
H A D | platform.c | 89 int prio, best_prio; in platform_probe_and_attach() local 116 prio = PLATFORM_PROBE(plat_obj); in platform_probe_and_attach() 119 if (prio > 0) in platform_probe_and_attach() 132 if (plat_def_impl == NULL || prio > best_prio) { in platform_probe_and_attach() 133 best_prio = prio; in platform_probe_and_attach()
|
/freebsd/sys/cddl/compat/opensolaris/kern/ |
H A D | opensolaris_taskq.c | 125 int mflag, prio; in taskq_dispatch() local 135 prio = !!(flags & TQ_FRONT); in taskq_dispatch() 144 TASK_INIT(&task->tqent_task, prio, taskq_run, task); in taskq_dispatch() 162 int prio; in taskq_dispatch_ent() local 168 prio = !!(flags & TQ_FRONT); in taskq_dispatch_ent() 173 TASK_INIT(&task->tqent_task, prio, taskq_run_ent, task); in taskq_dispatch_ent()
|
/freebsd/contrib/ofed/infiniband-diags/src/ |
H A D | sminfo.c | 75 static int prio, state = SMINFO_STANDBY; variable 87 prio = strtoul(optarg, 0, 0); in process_opt() 139 mad_encode_field(sminfo, IB_SMINFO_PRIO_F, &prio); in main() 153 mad_decode_field(sminfo, IB_SMINFO_PRIO_F, &prio); in main() 158 guid, act, prio, state, STATESTR(state)); in main()
|
/freebsd/usr.sbin/rtprio/ |
H A D | rtprio.c | 78 warnx("realtime priority %d", rtp.prio); in main() 84 warnx("idle priority %d", rtp.prio); in main() 96 rtp.prio = 0; in main() 102 rtp.prio = parseint(argv[1], "priority"); in main()
|
/freebsd/usr.bin/top/ |
H A D | commands.c | 468 int prio; in renice_procs() local 481 procnum = scanint(str, &prio); in renice_procs() 486 prio = -prio; in renice_procs() 490 if (procnum == -1 || prio < PRIO_MIN || prio > PRIO_MAX) in renice_procs() 509 if (setpriority(PRIO_PROCESS, procnum, prio) == -1) in renice_procs()
|
/freebsd/tests/sys/mqueue/ |
H A D | mqtest2.c | 49 unsigned int prio; in main() local 61 status = mq_receive(mq, buf, attr.mq_msgsize, &prio); in main() 67 if (prio != PRIO) in main() 69 prio); in main()
|