Home
last modified time | relevance | path

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

12

/Zephyr-Core-2.7.6/lib/posix/
Dpthread_sched.c10 static inline bool valid_posix_policy(int policy) in valid_posix_policy() argument
12 return policy == SCHED_FIFO || policy == SCHED_RR; in valid_posix_policy()
20 int sched_get_priority_min(int policy) in sched_get_priority_min() argument
22 if (!valid_posix_policy(policy)) { in sched_get_priority_min()
35 int sched_get_priority_max(int policy) in sched_get_priority_max() argument
37 if (IS_ENABLED(CONFIG_COOP_ENABLED) && policy == SCHED_FIFO) { in sched_get_priority_max()
39 } else if (IS_ENABLED(CONFIG_PREEMPT_ENABLED) && policy == SCHED_RR) { in sched_get_priority_max()
Dpthread.c38 static bool is_posix_prio_valid(uint32_t priority, int policy) in is_posix_prio_valid() argument
40 if (priority >= sched_get_priority_min(policy) && in is_posix_prio_valid()
41 priority <= sched_get_priority_max(policy)) { in is_posix_prio_valid()
48 static uint32_t zephyr_to_posix_priority(int32_t z_prio, int *policy) in zephyr_to_posix_priority() argument
53 *policy = SCHED_FIFO; in zephyr_to_posix_priority()
57 *policy = SCHED_RR; in zephyr_to_posix_priority()
65 static int32_t posix_to_zephyr_priority(uint32_t priority, int policy) in posix_to_zephyr_priority() argument
69 if (policy == SCHED_FIFO) { in posix_to_zephyr_priority()
268 int pthread_setschedparam(pthread_t pthread, int policy, in pthread_setschedparam() argument
278 if (policy != SCHED_RR && policy != SCHED_FIFO) { in pthread_setschedparam()
[all …]
/Zephyr-Core-2.7.6/tests/posix/common/src/
Dpthread.c71 int policy; in thread_top_exec() local
74 pthread_getschedparam(pthread_self(), &policy, &schedparam); in thread_top_exec()
76 id, policy, schedparam.sched_priority); in thread_top_exec()
193 int oldstate, policy, ret; in thread_top_term() local
205 zassert_false(pthread_getschedparam(self, &policy, &getschedparam), in thread_top_term()
235 int dstate, policy; in test_posix_pthread_execution() local
280 ret = pthread_attr_getschedpolicy(&attr[0], &policy); in test_posix_pthread_execution()
330 pthread_attr_getschedpolicy(&attr[i], &policy); in test_posix_pthread_execution()
331 zassert_equal(schedpolicy, policy, in test_posix_pthread_execution()
412 int policy, detach; in test_posix_pthread_error_condition() local
[all …]
Dposix_rwlock.c20 uint32_t policy, ret = 0U; in thread_top() local
25 pthread_getschedparam(pthread, &policy, &param); in thread_top()
27 id, policy, param.sched_priority); in thread_top()
/Zephyr-Core-2.7.6/subsys/pm/policy/
DKconfig6 Select the idle state power management policy.
12 Select this option for PM policy based on CPU residencies.
19 This policy is used for testing purposes only.
24 When this option is selected, the application must provide PM policy.
31 Use the default residency policy implementation
/Zephyr-Core-2.7.6/include/posix/
Dposix_sched.h38 int sched_get_priority_min(int policy);
39 int sched_get_priority_max(int policy);
Dpthread.h481 int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy);
482 int pthread_attr_getschedpolicy(const pthread_attr_t *attr, int *policy);
489 int pthread_getschedparam(pthread_t pthread, int *policy,
505 int pthread_setschedparam(pthread_t pthread, int policy,
/Zephyr-Core-2.7.6/arch/arm64/core/cortex_r/mpu/
DKconfig25 system requires PRIV access policy different from the access policy
33 policy allows instruction fetches by privileged code, forcing
/Zephyr-Core-2.7.6/subsys/pm/
DCMakeLists.txt7 add_subdirectory(policy)
DKconfig29 source "subsys/pm/policy/Kconfig"
/Zephyr-Core-2.7.6/subsys/bluetooth/shell/
Dl2cap.c241 const char *policy; in cmd_register() local
255 policy = argv[3]; in cmd_register()
257 if (!strcmp(policy, "allowlist")) { in cmd_register()
259 } else if (!strcmp(policy, "16byte_key")) { in cmd_register()
/Zephyr-Core-2.7.6/arch/arm/core/aarch32/mpu/
DKconfig30 system requires PRIV access policy different from the access policy
38 policy allows instruction fetches by privileged code, forcing
/Zephyr-Core-2.7.6/doc/reference/usermode/
Dmpu_stack_objects.rst59 that covers the memory access to determine the enforcement policy. Others may
60 logically OR regions to determine enforcement policy.
Doverview.rst35 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.
Dmemory_domain.rst26 MPUs have the concept of a default memory access policy map, which can be
152 policy is only intended to be controlled by boot-time memory regions.
/Zephyr-Core-2.7.6/doc/reference/power_management/
Dindex.rst62 on the selected power management policy and the duration of the idle time
136 The policy manager is responsible for informing the power subsystem which
151 This policy also accounts for the time necessary to become active
152 again. The core logic used by this policy to select the best power
164 The power management policy is defined by the application which has to implement
171 In this policy the application is free to decide which power state the
175 An example of an application that defines its own policy can be found in
333 returned by the policy manager, the system may suspend or put devices in low
/Zephyr-Core-2.7.6/doc/reference/kernel/other/
Dfatal.rst39 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-Core-2.7.6/subsys/testsuite/
DKconfig85 Option which implements default policy of enabling logging in
/Zephyr-Core-2.7.6/doc/getting_started/
Dtoolchain_3rd_party_x_compilers.rst29 policy <mac-gatekeeper>` for the toolchain to be able to run from the
/Zephyr-Core-2.7.6/boards/arm/cc3235sf_launchxl/doc/
Dindex.rst256 "Fast Connect" policy is enabled, with one-shot scanning.
/Zephyr-Core-2.7.6/boards/arm/cc3220sf_launchxl/doc/
Dindex.rst256 "Fast Connect" policy is enabled, with one-shot scanning.
/Zephyr-Core-2.7.6/subsys/debug/
DKconfig197 fails, the policy for what to do is controlled by the implementation
/Zephyr-Core-2.7.6/drivers/timer/
DKconfig173 prompt "Clock startup policy"
/Zephyr-Core-2.7.6/doc/reference/kernel/threads/
Dworkqueue.rst353 Use this if the policy is to keep collecting data until a specified delay
358 if the policy is to keep collecting data until a specified delay since the
/Zephyr-Core-2.7.6/doc/reference/bluetooth/
Dhci.txt779 filter policy.
1179 advertising filter policy.

12