Home
last modified time | relevance | path

Searched refs:sched_param (Results 1 – 25 of 42) sorted by relevance

12

/freebsd/sys/kern/
H A Dp1003_1b.c115 struct sched_param sched_param;
117 e = copyin(uap->param, &sched_param, sizeof(sched_param));
132 e = kern_sched_setparam(td, targettd, &sched_param);
139 struct sched_param *param)
150 (const struct sched_param *)param);
158 struct sched_param sched_param;
174 e = kern_sched_getparam(td, targettd, &sched_param);
177 e = copyout(&sched_param, uap->param, sizeof(sched_param));
183 struct sched_param *param)
201 struct sched_param sched_param;
[all …]
H A Dksched.c129 struct thread *td, const struct sched_param *param) in ksched_setparam()
141 struct sched_param *param) in ksched_getparam()
171 const struct sched_param *param) in ksched_setscheduler()
/freebsd/sys/sys/
H A Dposix4.h94 struct thread *, const struct sched_param *);
96 struct thread *, struct sched_param *);
99 struct thread *, int, const struct sched_param *);
H A Dsched.h246 struct sched_param {
266 int sched_getparam(pid_t, struct sched_param *);
269 int sched_setparam(pid_t, const struct sched_param *);
270 int sched_setscheduler(pid_t, int, const struct sched_param *);
245 struct sched_param { global() struct
265 sched_prioritysched_param global() argument
H A Dsyscallsubr.h60 struct sched_param;
307 struct sched_param *param);
311 struct sched_param *param);
313 int policy, struct sched_param *param);
/freebsd/lib/libthr/thread/
H A Dthr_kern.c67 struct sched_param *param) in _rtp_to_schedparam()
87 _schedparam_to_rtp(int policy, const struct sched_param *param, in _schedparam_to_rtp()
109 _thr_getscheduler(lwpid_t lwpid, int *policy, struct sched_param *param) in _thr_getscheduler()
122 _thr_setscheduler(lwpid_t lwpid, int policy, const struct sched_param *param) in _thr_setscheduler()
H A Dthr_create.c58 struct sched_param sched_param; in _pthread_create() local
169 sched_param.sched_priority = new_thread->attr.prio; in _pthread_create()
171 &sched_param, &rtp); in _pthread_create()
H A Dthr_init.c379 struct sched_param sched_param; in init_main_thread() local
429 &sched_param); in init_main_thread()
430 thread->attr.prio = sched_param.sched_priority; in init_main_thread()
H A Dthr_private.h836 int _thr_getscheduler(lwpid_t, int *, struct sched_param *) __hidden;
837 int _thr_setscheduler(lwpid_t, int, const struct sched_param *) __hidden;
847 struct sched_param *param) __hidden;
848 int _schedparam_to_rtp(int policy, const struct sched_param *param,
1046 struct sched_param * __restrict);
1058 const struct sched_param * __restrict);
H A Dthr_getprio.c44 struct sched_param param; in _pthread_getprio()
H A Dthr_getschedparam.c48 struct sched_param * __restrict param) in _pthread_getschedparam()
H A Dthr_setprio.c44 struct sched_param param; in _pthread_setprio()
H A Dthr_setschedparam.c51 const struct sched_param *param) in _pthread_setschedparam()
/freebsd/include/
H A Dspawn.h51 struct sched_param;
109 struct sched_param * __restrict);
120 const struct sched_param * __restrict);
H A Dpthread.h335 struct sched_param *);
342 const struct sched_param *);
346 struct sched_param * __restrict);
348 const struct sched_param *);
/freebsd/tools/regression/p1003_1b/
H A Dprutil.h7 struct sched_param;
11 int sched_is(int line, struct sched_param *, int);
H A Dprutil.c36 int sched_is(int line, struct sched_param *p, int shouldbe) in sched_is()
39 struct sched_param param; in sched_is()
H A Dsched.c110 struct sched_param rt_param; in sched()
160 struct sched_param orig_param, shouldbe; in sched()
H A Dyield.c71 struct sched_param set, got; in yield()
/freebsd/sys/compat/linux/
H A Dlinux_misc.c1267 struct sched_param sched_param; in linux_sched_setscheduler() local
1285 error = copyin(args->param, &sched_param, sizeof(sched_param)); in linux_sched_setscheduler()
1292 if (sched_param.sched_priority != 0) in linux_sched_setscheduler()
1295 sched_param.sched_priority = in linux_sched_setscheduler()
1300 if (sched_param.sched_priority < 1 || in linux_sched_setscheduler()
1301 sched_param.sched_priority >= LINUX_MAX_RT_PRIO) in linux_sched_setscheduler()
1308 sched_param.sched_priority = in linux_sched_setscheduler()
1309 (sched_param.sched_priority - 1) * in linux_sched_setscheduler()
1320 error = kern_sched_setscheduler(td, tdt, policy, &sched_param); in linux_sched_setscheduler()
1853 struct sched_param sched_param; in linux_sched_setparam() local
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/gen/posix_spawn/
H A Dt_spawnattr.c80 struct sched_param param; in get_different_priority()
112 struct sched_param sp, child_sp; in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/lib/librt/
H A Dt_sched.c50 struct sched_param s1, s2; in ATF_TC_BODY()
107 struct sched_param sched; in sched_priority_set()
/freebsd/contrib/netbsd-tests/lib/libpthread/
H A Dt_mutex.c481 struct sched_param param; in ATF_TC_BODY()
521 struct sched_param param; in high_prio()
552 struct sched_param param; in low_prio()
614 struct sched_param param; in ATF_TC_BODY()
/freebsd/lib/libc/gen/
H A Dposix_spawn.c49 struct sched_param sa_schedparam;
612 struct sched_param * __restrict schedparam) in posix_spawnattr_getschedparam()
663 const struct sched_param * __restrict schedparam) in posix_spawnattr_setschedparam()
/freebsd/lib/libsys/
H A D_libsys.h46 struct sched_param;
245 typedef int (__sys_sched_setparam_t)(pid_t, const struct sched_param *);
246 typedef int (__sys_sched_getparam_t)(pid_t, struct sched_param *);
247 typedef int (__sys_sched_setscheduler_t)(pid_t, int, const struct sched_param *);
646 int __sys_sched_setparam(pid_t pid, const struct sched_param * param);
647 int __sys_sched_getparam(pid_t pid, struct sched_param * param);
648 int __sys_sched_setscheduler(pid_t pid, int policy, const struct sched_param * param);

12