Home
last modified time | relevance | path

Searched refs:policy (Results 1 – 15 of 15) sorted by relevance

/bionic/libc/bionic/
Dpthread_getschedparam.cpp34 int pthread_getschedparam(pthread_t t, int* policy, sched_param* param) { in pthread_getschedparam() argument
41 *policy = sched_getscheduler(tid); in pthread_getschedparam()
Dpthread_setschedparam.cpp35 int pthread_setschedparam(pthread_t t, int policy, const sched_param* param) { in pthread_setschedparam() argument
41 return (sched_setscheduler(tid, policy, param) == -1) ? errno : 0; in pthread_setschedparam()
Dpthread_create.cpp123 int policy; in __init_thread() local
127 policy = sched_getscheduler(0); in __init_thread()
128 need_set = ((policy & SCHED_RESET_ON_FORK) != 0); in __init_thread()
130 if (policy == -1) { in __init_thread()
142 policy = thread->attr.sched_policy; in __init_thread()
151 if (sched_setscheduler(thread->tid, policy, &param) == -1) { in __init_thread()
153 "pthread_create sched_setscheduler(%d, {%d}) call failed: %s", policy, in __init_thread()
Dpthread_attr.cpp106 int pthread_attr_setschedpolicy(pthread_attr_t* attr, int policy) { in pthread_attr_setschedpolicy() argument
107 attr->sched_policy = policy; in pthread_attr_setschedpolicy()
112 int pthread_attr_getschedpolicy(const pthread_attr_t* attr, int* policy) { in pthread_attr_getschedpolicy() argument
113 *policy = attr->sched_policy; in pthread_attr_getschedpolicy()
Dspawn.cpp262 int posix_spawnattr_setschedpolicy(posix_spawnattr_t* attr, int policy) { in posix_spawnattr_setschedpolicy() argument
263 (*attr)->schedpolicy = policy; in posix_spawnattr_setschedpolicy()
267 int posix_spawnattr_getschedpolicy(const posix_spawnattr_t* attr, int* policy) { in posix_spawnattr_getschedpolicy() argument
268 *policy = (*attr)->schedpolicy; in posix_spawnattr_getschedpolicy()
/bionic/libc/
DSECCOMP_WHITELIST_GLOBAL.TXT1 # This file is used to populate seccomp's global whitelist policy in
3 # SECCOMP_WHITELIST.TXT. Unlike the policy used in normal operation this
4 # policy is applied globally during the early stage of init, if global seccomp
DSECCOMP_WHITELIST_APP.TXT1 # This file is used to populate seccomp's whitelist policy in combination with SYSCALLS.TXT.
2 # Note that the resultant policy is applied only to zygote spawned processes.
DSECCOMP_WHITELIST_SYSTEM.TXT1 # This file is used to populate seccomp's whitelist policy in combination with SYSCALLS.TXT.
2 # Note that the resultant policy is applied only to zygote spawned processes.
DSECCOMP_BLACKLIST_COMMON.TXT1 # This file is used to populate seccomp's whitelist policy in combination with SYSCALLS.TXT.
2 # Note that the resultant policy is applied only to zygote spawned processes.
DSECCOMP_BLACKLIST_APP.TXT1 # This file is used to populate seccomp's whitelist policy in combination with SYSCALLS.TXT.
2 # Note that the resultant policy is applied only to zygote spawned processes.
DSECCOMP_WHITELIST_COMMON.TXT1 # This file is used to populate seccomp's whitelist policy in combination with SYSCALLS.TXT.
2 # Note that the resultant policy is applied only to zygote spawned processes.
DSYSCALLS.TXT278 int sched_setscheduler(pid_t pid, int policy, const struct sched_param* param) all
283 int sched_get_priority_max(int policy) all
284 int sched_get_priority_min(int policy) all
/bionic/libc/kernel/uapi/linux/netfilter_bridge/
Debtables.h63 int policy; member
/bionic/libc/kernel/uapi/linux/
Dxfrm.h369 struct xfrm_userpolicy_info policy; member
/bionic/tests/
Dpthread_test.cpp586 int policy; in TEST_F() local
588 EXPECT_DEATH(pthread_getschedparam(dead_thread, &policy, &param), "invalid pthread_t"); in TEST_F()
593 int policy; in TEST_F() local
595 EXPECT_EQ(ESRCH, pthread_getschedparam(null_thread, &policy, &param)); in TEST_F()
602 int policy = 0; in TEST_F() local
604 EXPECT_DEATH(pthread_setschedparam(dead_thread, policy, &param), "invalid pthread_t"); in TEST_F()
609 int policy = 0; in TEST_F() local
611 EXPECT_EQ(ESRCH, pthread_setschedparam(null_thread, policy, &param)); in TEST_F()