/third_party/ltp/include/ |
D | tst_sched.h | 21 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/ |
D | sched_setscheduler03.c | 31 static struct sched_param param[1] = { {0} }; 36 struct sched_param *sched_param; member 44 .sched_param = ¶m[0] 49 .sched_param = ¶m[0] 55 .sched_param = ¶m[0] 98 i + 1, cases[i].policy, cases[i].sched_param->sched_priority); in verify_fn() 101 cases[i].sched_param)); in verify_fn()
|
D | sched_setscheduler01.c | 35 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/ |
D | prio-preempt.c | 137 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/ |
D | 2-3.c | 64 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()
|
D | 2-2.c | 64 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()
|
D | 2-1.c | 64 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/ |
D | sched.c | 10 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()
|
D | spawn.c | 12 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/ |
D | 3-1.c | 65 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/ |
D | usr_lib.h | 12 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…
|
D | sched.h | 19 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/ |
D | sched_setparam03.c | 24 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()
|
D | sched_setparam04.c | 26 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/ |
D | pthread_setschedprio.c | 34 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/ |
D | prio-wake.c | 132 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/ |
D | spawn.h | 16 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/ |
D | mixtest.c | 188 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/ |
D | spawn.h | 16 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/ |
D | spawn.h | 16 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/ |
D | spawn.h | 16 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…
|
D | sched.h | 19 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/ |
D | spawn.h | 16 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/ |
D | sched.h | 19 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/ |
D | 1-6.c | 69 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()
|