Home
last modified time | relevance | path

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

123456789

/third_party/ltp/include/
Dtst_sched.h21 static inline int sys_sched_setparam(pid_t pid, const struct sched_param *param) in sys_sched_setparam()
26 static inline int sys_sched_getparam(pid_t pid, struct sched_param *param) in sys_sched_getparam()
31 static inline int sys_sched_setscheduler(pid_t pid, int policy, const struct sched_param *param) in sys_sched_setscheduler()
41 static inline int libc_sched_setparam(pid_t pid, const struct sched_param *param) in libc_sched_setparam()
46 static inline int libc_sched_getparam(pid_t pid, struct sched_param *param) in libc_sched_getparam()
51 static inline int libc_sched_setscheduler(pid_t pid, int policy, const struct sched_param *param) in libc_sched_setscheduler()
64 int (*sched_setparam)(pid_t pid, const struct sched_param *param);
65 int (*sched_getparam)(pid_t pid, struct sched_param *param);
66 int (*sched_setscheduler)(pid_t pid, int policy, const struct sched_param *param);
/third_party/ltp/testcases/kernel/syscalls/sched_setscheduler/
Dsched_setscheduler03.c31 static struct sched_param param[1] = { {0} };
36 struct sched_param *sched_param; member
44 .sched_param = &param[0]
49 .sched_param = &param[0]
55 .sched_param = &param[0]
98 i + 1, cases[i].policy, cases[i].sched_param->sched_priority); in verify_fn()
101 cases[i].sched_param)); in verify_fn()
Dsched_setscheduler01.c35 static struct sched_param p;
36 static struct sched_param p1 = { .sched_priority = 1 };
44 struct sched_param *p;
52 {&init_pid, SCHED_OTHER, (struct sched_param *)-1, EFAULT},
/third_party/ltp/testcases/realtime/func/prio-preempt/
Dprio-preempt.c137 struct sched_param sched_param; in busy_thread() local
141 if (pthread_getschedparam(pthread_self(), &policy, &sched_param) != 0) { in busy_thread()
144 mypri = sched_param.sched_priority; in busy_thread()
163 struct sched_param sched_param; in worker_thread() local
168 if (pthread_getschedparam(pthread_self(), &policy, &sched_param) != 0) { in worker_thread()
171 mypri = sched_param.sched_priority; in worker_thread()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/
D2-3.c64 struct sched_param sched_param; in set_priority() local
65 memset(&sched_param, 0, sizeof(sched_param)); in set_priority()
66 sched_param.sched_priority = prio; in set_priority()
67 if (pthread_setschedparam(pid, policy, &sched_param) == -1) { in set_priority()
D2-2.c64 struct sched_param sched_param; in set_priority() local
65 memset(&sched_param, 0, sizeof(sched_param)); in set_priority()
66 sched_param.sched_priority = prio; in set_priority()
67 if (pthread_setschedparam(pid, policy, &sched_param) == -1) { in set_priority()
D2-1.c64 struct sched_param sched_param; in set_priority() local
65 memset(&sched_param, 0, sizeof(sched_param)); in set_priority()
66 sched_param.sched_priority = prio; in set_priority()
67 if (pthread_setschedparam(pid, policy, &sched_param) == -1) { in set_priority()
/third_party/musl/libc-test/src/api/
Dsched.c10 struct sched_param x; in f()
23 {int(*p)(pid_t,struct sched_param*) = sched_getparam;} in f()
25 {int(*p)(pid_t,const struct sched_param*) = sched_setparam;} in f()
26 {int(*p)(pid_t,int,const struct sched_param*) = sched_setscheduler;} in f()
Dspawn.c12 T(struct sched_param) in f()
47 {int(*p)(const posix_spawnattr_t*restrict,struct sched_param*restrict) = posix_spawnattr_getschedpa… in h()
49 {int(*p)(posix_spawnattr_t*restrict,const struct sched_param*restrict) = posix_spawnattr_setschedpa… in h()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/
D3-1.c65 struct sched_param sched_param; in set_priority() local
66 memset(&sched_param, 0, sizeof(sched_param)); in set_priority()
67 sched_param.sched_priority = prio; in set_priority()
68 if (pthread_setschedparam(pid, policy, &sched_param) == -1) { in set_priority()
/third_party/musl/porting/liteos_m/user/include/
Dusr_lib.h12 USR_LIBC_FUNC_DEF(int, pthread_attr_setschedparam, pthread_attr_t *attr, const struct sched_param *…
13 USR_LIBC_FUNC_DEF(int, pthread_attr_getschedparam, const pthread_attr_t *attr, struct sched_param *…
21 …FUNC_DEF(int, pthread_setschedparam, pthread_t thread, int policy, const struct sched_param *param)
22 USR_LIBC_FUNC_DEF(int, pthread_getschedparam, pthread_t thread, int *policy, struct sched_param *pa…
Dsched.h19 struct sched_param { struct
35 int sched_getparam(pid_t, struct sched_param *); argument
38 int sched_setparam(pid_t, const struct sched_param *);
39 int sched_setscheduler(pid_t, int, const struct sched_param *);
/third_party/ltp/testcases/kernel/syscalls/sched_setparam/
Dsched_setparam03.c24 struct sched_param p5 = { .sched_priority = 5 }; in run()
25 struct sched_param p; in run()
47 struct sched_param p = { .sched_priority = 1 }; in setup()
Dsched_setparam04.c26 static struct sched_param p = { .sched_priority = 0 };
27 static struct sched_param p1 = { .sched_priority = 1 };
36 struct sched_param *p;
/third_party/musl/libc-test/src/functionalext/supplement/thread/
Dpthread_setschedprio.c34 static void setthreadproperty(pthread_attr_t *attr, struct sched_param *param) in setthreadproperty()
58 struct sched_param param; in pthread_setschedprio_0100()
80 struct sched_param param; in pthread_setschedprio_0200()
/third_party/ltp/testcases/realtime/func/prio-wake/
Dprio-wake.c132 struct sched_param sched_param; in worker_thread() local
140 if (pthread_getschedparam(pthread_self(), &policy, &sched_param) != 0) { in worker_thread()
145 mypri = sched_param.sched_priority; in worker_thread()
/third_party/musl/ndk_musl_include/
Dspawn.h16 struct sched_param;
62 int posix_spawnattr_setschedparam(posix_spawnattr_t *__restrict, const struct sched_param *__restri…
63 int posix_spawnattr_getschedparam(const posix_spawnattr_t *__restrict, struct sched_param *__restri…
/third_party/alsa-lib/test/
Dmixtest.c188 struct sched_param sched_param; in setscheduler() local
190 if (sched_getparam(0, &sched_param) < 0) { in setscheduler()
194 sched_param.sched_priority = sched_get_priority_max(SCHED_RR); in setscheduler()
195 if (!sched_setscheduler(0, SCHED_RR, &sched_param)) { in setscheduler()
196 printf("Scheduler set to Round Robin with priority %i...\n", sched_param.sched_priority); in setscheduler()
200 printf("!!!Scheduler set to Round Robin with priority %i FAILED!!!\n", sched_param.sched_priority); in setscheduler()
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
Dspawn.h16 struct sched_param;
62 int posix_spawnattr_setschedparam(posix_spawnattr_t *__restrict, const struct sched_param *__restri…
63 int posix_spawnattr_getschedparam(const posix_spawnattr_t *__restrict, struct sched_param *__restri…
/third_party/musl/porting/liteos_m/kernel/include/
Dspawn.h16 struct sched_param;
62 int posix_spawnattr_setschedparam(posix_spawnattr_t *__restrict, const struct sched_param *__restri…
63 int posix_spawnattr_getschedparam(const posix_spawnattr_t *__restrict, struct sched_param *__restri…
/third_party/musl/include/
Dspawn.h16 struct sched_param;
62 int posix_spawnattr_setschedparam(posix_spawnattr_t *__restrict, const struct sched_param *__restri…
63 int posix_spawnattr_getschedparam(const posix_spawnattr_t *__restrict, struct sched_param *__restri…
Dsched.h19 struct sched_param { struct
35 int sched_getparam(pid_t, struct sched_param *); argument
38 int sched_setparam(pid_t, const struct sched_param *);
39 int sched_setscheduler(pid_t, int, const struct sched_param *);
/third_party/musl/porting/uniproton/kernel/include/
Dspawn.h16 struct sched_param;
62 int posix_spawnattr_setschedparam(posix_spawnattr_t *__restrict, const struct sched_param *__restri…
63 int posix_spawnattr_getschedparam(const posix_spawnattr_t *__restrict, struct sched_param *__restri…
/third_party/musl/porting/linux/user/include/
Dsched.h19 struct sched_param { struct
35 int sched_getparam(pid_t, struct sched_param *); argument
38 int sched_setparam(pid_t, const struct sched_param *);
39 int sched_setscheduler(pid_t, int, const struct sched_param *);
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
D1-6.c69 struct sched_param sched_param = {.sched_priority = prio}; in init_attr() local
90 ret = pthread_attr_setschedparam(attr, &sched_param); in init_attr()
152 struct sched_param param; in do_test()

123456789