/freebsd-11-stable/lib/libthr/thread/ |
H A D | thr_setprio.c | 42 _pthread_setprio(pthread_t pthread, int prio) argument 48 param.sched_priority = prio; 54 pthread->attr.prio == prio) { 55 pthread->attr.prio = prio; 63 pthread->attr.prio = prio;
|
H A D | thr_setschedparam.c | 64 pthread->attr.prio == param->sched_priority)) { 65 pthread->attr.prio = param->sched_priority; 74 pthread->attr.prio = param->sched_priority;
|
H A D | thr_getschedparam.c | 66 param->sched_priority = pthread->attr.prio;
|
H A D | thr_kern.c | 77 param->sched_priority = RTP_PRIO_MAX - rtp->prio; 81 param->sched_priority = RTP_PRIO_MAX - rtp->prio; 98 rtp->prio = RTP_PRIO_MAX - param->sched_priority; 102 rtp->prio = RTP_PRIO_MAX - param->sched_priority; 107 rtp->prio = 0;
|
/freebsd-11-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-11-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-11-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-11-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-11-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-11-stable/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_fs_tree.c | 87 int prio; member in struct:init_tree_node 114 ADD_FT_PRIO("prio-mcast", 0, 400 static struct mlx5_flow_table *find_next_ft(struct fs_prio *prio); 402 struct fs_prio *prio); 482 /* Assume ft's prio is locked */ 484 struct fs_prio *prio; local 486 fs_get_parent(prio, prev_ft); 487 if (prio == locked_prio) 500 static int create_star_rule(struct mlx5_flow_table *ft, struct fs_prio *prio) argument 508 struct mlx5_flow_root_namespace *root = find_root(&prio 595 destroy_star_rule(struct mlx5_flow_table *ft, struct fs_prio *prio) argument 648 find_prio(struct mlx5_flow_namespace *ns, unsigned int prio) argument 664 __alloc_new_level(struct mlx5_flow_namespace *ns, struct fs_prio *prio) argument 690 _alloc_new_level(struct fs_prio *prio, struct mlx5_flow_namespace *match) argument 729 alloc_new_level(struct fs_prio *prio) argument 840 create_ft_common(struct mlx5_flow_namespace *ns, u16 vport, unsigned int prio, int max_fte, const char *name) argument 874 mlx5_create_auto_grouped_flow_table(struct mlx5_flow_namespace *ns, int prio, const char *name, int num_flow_table_entries, int max_num_groups) argument 914 mlx5_create_vport_flow_table(struct mlx5_flow_namespace *ns, u16 vport, int prio, const char *name, int num_flow_table_entries) argument 924 mlx5_create_flow_table(struct mlx5_flow_namespace *ns, int prio, const char *name, int num_flow_table_entries) argument 937 struct fs_prio *prio; local 952 struct fs_prio *prio; local 990 struct fs_prio *prio; local 1198 _find_first_ft_in_prio_reverse(struct fs_prio *prio, struct list_head *start) argument 1227 find_first_ft_in_prio_reverse(struct fs_prio *prio, struct list_head *start) argument 1245 struct fs_prio *prio; local 1269 find_prev_ft(struct mlx5_flow_table *curr, struct fs_prio *prio) argument 1299 _find_first_ft_in_prio(struct fs_prio *prio, struct list_head *start) argument 1328 find_first_ft_in_prio(struct fs_prio *prio, struct list_head *start) argument 1346 struct fs_prio *prio; local 1370 find_next_ft(struct fs_prio *prio) argument 1892 fs_create_prio(struct mlx5_flow_namespace *ns, unsigned prio, int max_ft, const char *name, u8 flags) argument 1967 struct fs_base *prio; local 2032 struct fs_prio *prio; local 2051 struct fs_prio *prio; local 2069 struct fs_prio *prio; local 2087 struct fs_prio *prio; local 2106 struct fs_prio *prio; local 2122 fs_create_namespace(struct fs_prio *prio, const char *name) argument 2222 struct fs_prio *prio; local 2231 sum_max_ft_in_prio(struct fs_prio *prio) argument 2253 struct fs_prio *prio; local 2367 int prio; local 2564 iterate_rules_in_prio(struct fs_prio *prio, rule_event_fn add_rule_cb, void *context) argument [all...] |
H A D | fs_core.h | 123 unsigned int prio; member in struct:fs_prio 195 #define fs_for_each_ft(pos, prio) \ 197 &(prio)->objs) 199 #define fs_for_each_ft_reverse(pos, prio) \ 202 &(prio)->objs) 204 #define fs_for_each_ns(pos, prio) \ 207 &(prio)->objs) 209 #define fs_for_each_ns_or_ft_reverse(pos, prio) \ 210 list_for_each_entry_reverse(pos, &(prio)->objs, list) \ 214 #define fs_for_each_ns_or_ft(pos, prio) \ [all...] |
/freebsd-11-stable/contrib/mdocml/ |
H A D | tag.c | 37 int prio; member in struct:tag_entry 127 tag_put(const char *s, int prio, size_t line) argument 160 if (prio == 0) { 161 if (entry->prio == 0) 162 entry->prio = -1; 168 if (entry->prio > 0 && entry->prio < prio) 173 if (entry->prio < 1 || entry->prio > pri [all...] |
/freebsd-11-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 | mqtest5.c | 61 int prio, j, i; local 86 status = mq_receive(mq, buf, attr.mq_msgsize, &prio); 92 if (prio != PRIO) 94 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 | mqtest3.c | 53 unsigned int prio; local 71 status = mq_receive(mq, buf, attr.mq_msgsize, &prio); 77 if (prio != PRIO) 78 err(4, "priority is incorrect: %d", prio);
|
/freebsd-11-stable/usr.sbin/rtprio/ |
H A D | rtprio.c | 81 warnx("realtime priority %d", rtp.prio); 87 warnx("idle priority %d", rtp.prio); 99 rtp.prio = 0; 105 rtp.prio = parseint(argv[1], "priority"); 148 "usage: [id|rt]prio", 149 " [id|rt]prio [-]pid", 150 " [id|rt]prio priority command [args]", 151 " [id|rt]prio priority -pid", 152 " [id|rt]prio -t command [args]", 153 " [id|rt]prio [all...] |
/freebsd-11-stable/contrib/ofed/infiniband-diags/src/ |
H A D | sminfo.c | 75 static int prio, state = SMINFO_STANDBY; variable 87 prio = strtoul(optarg, 0, 0); 139 mad_encode_field(sminfo, IB_SMINFO_PRIO_F, &prio); 153 mad_decode_field(sminfo, IB_SMINFO_PRIO_F, &prio); 158 guid, act, prio, state, STATESTR(state));
|
/freebsd-11-stable/sys/arm/arm/ |
H A D | platform.c | 86 int prio, best_prio; local 113 prio = PLATFORM_PROBE(plat_obj); 116 if (prio > 0) 129 if (plat_def_impl == NULL || prio > best_prio) { 130 best_prio = prio;
|
/freebsd-11-stable/sys/sys/ |
H A D | lockmgr.h | 70 const char *wmesg, int prio, int timo, const char *file, int line); 85 void lockinit(struct lock *lk, int prio, const char *wmesg, int timo, 99 int prio, int timo, const char *file, int line) 103 NULL, wmesg, prio, timo, file, line)); 108 const char *wmesg, int prio, int timo, const char *file, int line) 112 NULL, wmesg, prio, timo, file, line)); 121 #define lockmgr_args(lk, flags, ilk, wmesg, prio, timo) \ 122 _lockmgr_args((lk), (flags), (ilk), (wmesg), (prio), (timo), \ 124 #define lockmgr_args_rw(lk, flags, ilk, wmesg, prio, timo) \ 125 _lockmgr_args_rw((lk), (flags), (ilk), (wmesg), (prio), (tim 98 _lockmgr_args(struct lock *lk, u_int flags, struct mtx *ilk, const char *wmesg, int prio, int timo, const char *file, int line) argument 107 _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 | 95 void sched_lend_prio(struct thread *td, u_char prio); 98 void sched_prio(struct thread *td, u_char prio); 99 void sched_sleep(struct thread *td, int prio); 102 void sched_unlend_prio(struct thread *td, u_char prio); 103 void sched_user_prio(struct thread *td, u_char prio);
|
/freebsd-11-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-11-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-11-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-11-stable/contrib/top/ |
H A D | commands.c | 483 int prio; local 498 procnum = scanint(str, &prio); 503 prio = -prio; 508 if (procnum == -1 || prio < PRIO_MIN || prio > PRIO_MAX) 533 else if (setpriority(PRIO_PROCESS, procnum, prio) == -1)
|