/freebsd/tools/regression/p1003_1b/ |
H A D | sched.c | 166 sched_text(orig_scheduler), orig_param.sched_priority); in sched() 173 rt_param.sched_priority = fifo_schedmin; in sched() 182 if (shouldbe.sched_priority != fifo_schedmin) in sched() 185 rt_param.sched_priority = fifo_schedmin; in sched() 190 rt_param.sched_priority = fifo_schedmin + 1; in sched() 198 if (shouldbe.sched_priority != fifo_schedmin + 1) in sched() 235 rt_param.sched_priority = fifo_schedmax; in sched() 253 rt_param.sched_priority--; in sched() 262 rt_param.sched_priority--; in sched() 265 if (rt_param.sched_priority < fifo_schedmin) in sched() [all …]
|
H A D | yield.c | 76 set.sched_priority = sched_get_priority_max(SCHED_FIFO); in yield() 77 if (set.sched_priority == -1 && errno) { in yield() 106 if (got.sched_priority != set.sched_priority) { in yield() 123 if (got.sched_priority != set.sched_priority) { in yield()
|
H A D | fifo.c | 109 fifo_param.sched_priority = 1; in fifo()
|
/freebsd/sys/kern/ |
H A D | ksched.c | 147 param->sched_priority = rtpprio_to_p4prio(rtp.prio); in ksched_getparam() 154 param->sched_priority = PRI_MAX_TIMESHARE - in ksched_getparam() 157 param->sched_priority = tsprio_to_p4prio(rtp.prio); in ksched_getparam() 180 if (param->sched_priority >= P1B_PRIO_MIN && in ksched_setscheduler() 181 param->sched_priority <= P1B_PRIO_MAX) { in ksched_setscheduler() 182 rtp.prio = p4prio_to_rtpprio(param->sched_priority); in ksched_setscheduler() 191 if (param->sched_priority >= 0 && param->sched_priority <= in ksched_setscheduler() 194 rtp.prio = p4prio_to_tsprio(param->sched_priority); in ksched_setscheduler()
|
H A D | sched_ule.c | 363 static void sched_priority(struct thread *); 1768 sched_priority(struct thread *td) in sched_priority() function 2479 sched_priority(td); in sched_nice() 2559 sched_priority(child); in sched_fork() 2562 sched_priority(td); in sched_fork() 2659 sched_priority(td); in sched_exit_thread() 2782 sched_priority(td); in sched_clock() 2933 sched_priority(td); in sched_add()
|
H A D | sched_4bsd.c | 141 static void sched_priority(struct thread *td, u_char prio); 865 sched_priority(struct thread *td, u_char prio) in sched_priority() function 898 sched_priority(td, prio); in sched_lend_prio() 943 sched_priority(td, prio); in sched_prio()
|
/freebsd/contrib/netbsd-tests/lib/librt/ |
H A D | t_sched.c | 60 ATF_CHECK_EQ(s1.sched_priority, s2.sched_priority); in ATF_TC_BODY() 69 ATF_TC(sched_priority); 70 ATF_TC_HEAD(sched_priority, tc) in ATF_TC_HEAD() argument 75 ATF_TC_BODY(sched_priority, tc) in ATF_TC_BODY() argument 109 sched.sched_priority = pri; in sched_priority_set() 122 sched.sched_priority = -1; in sched_priority_set() 125 ATF_CHECK_EQ(sched.sched_priority, pri); in sched_priority_set() 245 ATF_TP_ADD_TC(tp, sched_priority); in ATF_TP_ADD_TCS()
|
/freebsd/contrib/netbsd-tests/lib/libc/gen/posix_spawn/ |
H A D | t_spawnattr.c | 86 priority = param.sched_priority; in get_different_priority() 128 sp.sched_priority = priority; in ATF_TC_BODY() 153 ATF_REQUIRE_MSG(child_sp.sched_priority == sp.sched_priority, in ATF_TC_BODY() 155 child_sp.sched_priority, sp.sched_priority); in ATF_TC_BODY()
|
/freebsd/lib/libthr/thread/ |
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() 80 param->sched_priority = 0; 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()
|
H A D | thr_setschedparam.c | 63 pthread->attr.prio == param->sched_priority)) { in _pthread_setschedparam() 64 pthread->attr.prio = param->sched_priority; in _pthread_setschedparam() 73 pthread->attr.prio = param->sched_priority; in _pthread_setschedparam()
|
H A D | thr_attr.c | 238 param->sched_priority = (*attr)->prio; in _thr_attr_getschedparam() 414 if (param->sched_priority < _thr_priorities[policy-1].pri_min || in _thr_attr_setschedparam() 415 param->sched_priority > _thr_priorities[policy-1].pri_max) in _thr_attr_setschedparam() 425 (*attr)->prio = param->sched_priority; in _thr_attr_setschedparam()
|
H A D | thr_getprio.c | 47 ret = param.sched_priority; in _pthread_getprio()
|
H A D | thr_getschedparam.c | 65 param->sched_priority = pthread->attr.prio; in _pthread_getschedparam()
|
H A D | thr_setprio.c | 47 param.sched_priority = prio; in _pthread_setprio()
|
H A D | thr_create.c | 175 sched_param.sched_priority = new_thread->attr.prio; in _pthread_create()
|
H A D | thr_init.c | 431 thread->attr.prio = sched_param.sched_priority; in init_main_thread()
|
/freebsd/contrib/netbsd-tests/lib/libpthread/ |
H A D | t_mutex.c | 487 param.sched_priority = min_fifo_prio; in ATF_TC_BODY() 523 param.sched_priority = min_fifo_prio + 10; in high_prio() 529 _sched_protect(-2), param.sched_priority); in high_prio() 531 printf("high prio = %d\n", param.sched_priority); in high_prio() 554 param.sched_priority = min_fifo_prio; in low_prio() 561 param.sched_priority); in low_prio() 563 printf("low prio = %d\n", param.sched_priority); in low_prio() 624 param.sched_priority = min_fifo_prio; in ATF_TC_BODY()
|
/freebsd/sys/compat/linux/ |
H A D | linux_misc.c | 1272 if (sched_param.sched_priority != 0) in linux_sched_setscheduler() 1275 sched_param.sched_priority = in linux_sched_setscheduler() 1280 if (sched_param.sched_priority < 1 || in linux_sched_setscheduler() 1281 sched_param.sched_priority >= LINUX_MAX_RT_PRIO) in linux_sched_setscheduler() 1288 sched_param.sched_priority = in linux_sched_setscheduler() 1289 (sched_param.sched_priority - 1) * in linux_sched_setscheduler() 1852 if (sched_param.sched_priority != 0) { in linux_sched_setparam() 1856 sched_param.sched_priority = in linux_sched_setparam() 1861 if (sched_param.sched_priority < 1 || in linux_sched_setparam() 1862 sched_param.sched_priority >= LINUX_MAX_RT_PRIO) { in linux_sched_setparam() [all …]
|
/freebsd/contrib/ntp/ntpd/ |
H A D | ntpd.c | 508 sched.sched_priority = pmax; in set_process_priority() 512 sched.sched_priority = pmax; in set_process_priority() 514 sched.sched_priority = pmin; in set_process_priority() 516 sched.sched_priority = config_priority; in set_process_priority()
|
/freebsd/sys/sys/ |
H A D | sched.h | 256 int sched_priority; member
|
/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/ |
H A D | Threading.inc | 260 // For each of the above policies, param->sched_priority must be 0. 261 priority.sched_priority = 0;
|
/freebsd/tests/sys/kern/ |
H A D | ptrace_test.c | 2025 sched_param.sched_priority = in ATF_TC_BODY() 2030 sched_param.sched_priority -= 1; in ATF_TC_BODY() 2128 sched_param.sched_priority = in ATF_TC_BODY() 2133 sched_param.sched_priority -= 1; in ATF_TC_BODY()
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | z_Linux_util.cpp | 657 if (param.sched_priority < max_priority) { in __kmp_launch_monitor() 658 param.sched_priority += 1; in __kmp_launch_monitor()
|
/freebsd/tools/tools/netmap/ |
H A D | nmreplay.c | 664 p.sched_priority = 10; // 99 on linux ? in setaffinity()
|
/freebsd/usr.bin/truss/ |
H A D | syscalls.c | 2592 fprintf(fp, "{ %d }", sp.sched_priority); in print_arg()
|