/Zephyr-latest/lib/posix/options/ |
D | pthread_sched.h | 15 static inline bool valid_posix_policy(int policy) in valid_posix_policy() argument 17 return policy == SCHED_FIFO || policy == SCHED_RR || policy == SCHED_OTHER; in valid_posix_policy() 20 static inline int posix_sched_priority_min(int policy) in posix_sched_priority_min() argument 22 if (!valid_posix_policy(policy)) { in posix_sched_priority_min() 30 static inline int posix_sched_priority_max(int policy) in posix_sched_priority_max() argument 32 if (IS_ENABLED(CONFIG_COOP_ENABLED) && policy == SCHED_FIFO) { in posix_sched_priority_max() 35 (policy == SCHED_RR || policy == SCHED_OTHER)) { in posix_sched_priority_max()
|
D | sched.c | 17 int sched_get_priority_min(int policy) in sched_get_priority_min() argument 19 return posix_sched_priority_min(policy); in sched_get_priority_min() 27 int sched_get_priority_max(int policy) in sched_get_priority_max() argument 29 return posix_sched_priority_max(policy); in sched_get_priority_max() 81 int sched_setscheduler(pid_t pid, int policy, const struct sched_param *param) in sched_setscheduler() argument 84 ARG_UNUSED(policy); in sched_setscheduler()
|
D | pthread.c | 239 static bool is_posix_policy_prio_valid(int priority, int policy) in is_posix_policy_prio_valid() argument 241 if (priority >= posix_sched_priority_min(policy) && in is_posix_policy_prio_valid() 242 priority <= posix_sched_priority_max(policy)) { in is_posix_policy_prio_valid() 246 LOG_DBG("Invalid priority %d and / or policy %d", priority, policy); in is_posix_policy_prio_valid() 252 int zephyr_to_posix_priority(int z_prio, int *policy) in zephyr_to_posix_priority() argument 262 *policy = (z_prio < 0) ? SCHED_FIFO : SCHED_RR; in zephyr_to_posix_priority() 264 __ASSERT_NO_MSG(is_posix_policy_prio_valid(priority, *policy)); in zephyr_to_posix_priority() 270 int posix_to_zephyr_priority(int priority, int policy) in posix_to_zephyr_priority() argument 272 __ASSERT_NO_MSG(is_posix_policy_prio_valid(priority, policy)); in posix_to_zephyr_priority() 274 return POSIX_TO_ZEPHYR_PRIORITY(priority, policy); in posix_to_zephyr_priority() [all …]
|
D | posix_internal.h | 112 int posix_to_zephyr_priority(int priority, int policy); 113 int zephyr_to_posix_priority(int priority, int *policy);
|
/Zephyr-latest/tests/posix/common/src/ |
D | pthread_attr.c | 196 int policy = BIOS_FOOD; in ZTEST() local 203 zassert_equal(pthread_attr_getschedpolicy(NULL, &policy), EINVAL); in ZTEST() 204 zassert_equal(pthread_attr_getschedpolicy(&uninit_attr, &policy), EINVAL); in ZTEST() 210 zassert_ok(pthread_attr_getschedpolicy(&attr, &policy)); in ZTEST() 211 zassert_not_equal(BIOS_FOOD, policy); in ZTEST() 216 int policy = SCHED_OTHER; in ZTEST() local 223 zassert_equal(pthread_attr_setschedpolicy(NULL, policy), EINVAL); in ZTEST() 225 pthread_attr_setschedpolicy((pthread_attr_t *)&uninit_attr, policy), in ZTEST() 233 policy = SCHED_INVALID; in ZTEST() 234 zassert_ok(pthread_attr_getschedpolicy(&attr, &policy)); in ZTEST() [all …]
|
D | pthread.c | 61 int policy; in thread_top_exec() local 64 pthread_getschedparam(pthread_self(), &policy, &schedparam); in thread_top_exec() 66 id, policy, schedparam.sched_priority); in thread_top_exec() 191 int policy, ret; in thread_top_term() local 203 zassert_false(pthread_getschedparam(self, &policy, &getschedparam), in thread_top_term() 229 int zephyr_to_posix_priority(int z_prio, int *policy); 230 int posix_to_zephyr_priority(int priority, int policy); 239 p_prio, policy; in ZTEST() local 241 p_prio = zephyr_to_posix_priority(z_prio, &policy); in ZTEST() 242 zassert_equal(policy, SCHED_FIFO); in ZTEST() [all …]
|
/Zephyr-latest/include/zephyr/posix/ |
D | sched.h | 49 int sched_get_priority_min(int policy); 50 int sched_get_priority_max(int policy); 56 int sched_setscheduler(pid_t pid, int policy, const struct sched_param *param);
|
D | pthread.h | 410 int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy); 411 int pthread_attr_getschedpolicy(const pthread_attr_t *attr, int *policy); 418 int pthread_getschedparam(pthread_t pthread, int *policy, 444 int pthread_setschedparam(pthread_t pthread, int policy,
|
/Zephyr-latest/soc/nxp/imx/imx8m/a53/ |
D | soc.c | 33 periphConfig.policy = RDC_DT_VAL(uart2); in soc_rdc_init() 39 periphConfig.policy = RDC_DT_VAL(uart4); in soc_rdc_init() 45 periphConfig.policy = RDC_DT_VAL(enet); in soc_rdc_init()
|
/Zephyr-latest/subsys/pm/policy/ |
D | Kconfig | 9 Select the idle state power management policy. 12 bool "Default PM policy" 14 This option selects the default PM policy. Default policy is based 21 This options allows applications to override the default policy with
|
/Zephyr-latest/samples/posix/philosophers/src/ |
D | main.c | 90 int policy; in print_phil_state() local 93 ret = pthread_getschedparam(pthread_self(), &policy, ¶m); in print_phil_state() 100 prio = posix_to_zephyr_priority(param.sched_priority, policy); in print_phil_state() 215 int policy; in start_threads() local 228 param.sched_priority = zephyr_to_posix_priority(prio, &policy); in start_threads() 229 ret = pthread_setschedparam(threads[i], policy, ¶m); in start_threads()
|
/Zephyr-latest/doc/services/pm/ |
D | system.rst | 13 the appropriate power state to transition to based on the configured power management policy. 36 pm_policy [label="Check policy manager\nfor a power state "] 89 The policy manager is the component of the power management subsystem responsible 91 The policy manager can only choose between states that have been defined for the platform. 93 or various kinds of minimum and maximum latency values, depending on the policy. 101 Under the residency policy, the system will enter the power state which offers the highest 117 The application defines the power management policy by implementing the 118 :c:func:`pm_policy_next_state` function. In this policy, the application is free 122 An example of an application that defines its own policy can be found in 125 .. _pm-policy-power-states: [all …]
|
/Zephyr-latest/soc/ite/ec/common/ |
D | CMakeLists.txt | 11 zephyr_sources_ifdef(CONFIG_PM_POLICY_CUSTOM policy.c)
|
/Zephyr-latest/subsys/pm/ |
D | CMakeLists.txt | 8 add_subdirectory(policy)
|
/Zephyr-latest/arch/arm64/core/cortex_r/ |
D | Kconfig | 28 system requires PRIV access policy different from the access policy 36 policy allows instruction fetches by privileged code, forcing
|
/Zephyr-latest/subsys/bluetooth/host/shell/ |
D | l2cap.c | 244 const char *policy; in cmd_register() local 258 policy = argv[3]; in cmd_register() 260 if (!strcmp(policy, "allowlist")) { in cmd_register() 262 } else if (!strcmp(policy, "16byte_key")) { in cmd_register()
|
/Zephyr-latest/arch/arm/core/mpu/ |
D | Kconfig | 33 system requires PRIV access policy different from the access policy 41 policy allows instruction fetches by privileged code, forcing
|
/Zephyr-latest/doc/kernel/usermode/ |
D | mpu_stack_objects.rst | 58 that covers the memory access to determine the enforcement policy. Others may 59 logically OR regions to determine enforcement policy.
|
D | overview.rst | 35 memory that has an incompatible policy, such as attempting to write to a 38 - Access to thread stack buffers will be controlled with a policy which 60 on read-only basis, kernel-wide. This policy may be adjusted.
|
/Zephyr-latest/drivers/timer/ |
D | Kconfig.nrf_xrtc | 8 prompt "Clock startup policy"
|
/Zephyr-latest/doc/develop/toolchains/ |
D | gnu_arm_embedded.rst | 19 policy <mac-gatekeeper>` for the toolchain to be able to run from the
|
/Zephyr-latest/kernel/ |
D | Kconfig.mem_domain | 52 policy is managed in separate software constructions like page
|
/Zephyr-latest/doc/project/ |
D | tsc.rst | 135 of the next attended meeting. The TSC enforces the suspension policy for voting 139 February 16, 2022 to discontinue default enforcement of the suspension policy. 141 suspension policy.
|
/Zephyr-latest/doc/kernel/services/other/ |
D | fatal.rst | 39 The policy for what to do when encountering a failed assertion is controlled 239 The policy for what to do when encountering a fatal error is determined by the 245 Applications are free to implement their own error handling policy by
|
/Zephyr-latest/doc/hardware/peripherals/edac/ |
D | ibecc.rst | 64 implement desired policy with respect for handling those memory errors. Error
|