Searched refs:futex (Results 1 – 9 of 9) sorted by relevance
/Zephyr-Core-3.6.0/kernel/ |
D | futex.c | 15 static struct z_futex_data *k_futex_find_data(struct k_futex *futex) in k_futex_find_data() argument 19 obj = k_object_find(futex); in k_futex_find_data() 27 int z_impl_k_futex_wake(struct k_futex *futex, bool wake_all) in z_impl_k_futex_wake() argument 34 futex_data = k_futex_find_data(futex); in z_impl_k_futex_wake() 55 static inline int z_vrfy_k_futex_wake(struct k_futex *futex, bool wake_all) in z_vrfy_k_futex_wake() argument 57 if (K_SYSCALL_MEMORY_WRITE(futex, sizeof(struct k_futex)) != 0) { in z_vrfy_k_futex_wake() 61 return z_impl_k_futex_wake(futex, wake_all); in z_vrfy_k_futex_wake() 65 int z_impl_k_futex_wait(struct k_futex *futex, int expected, in z_impl_k_futex_wait() argument 72 futex_data = k_futex_find_data(futex); in z_impl_k_futex_wait() 77 if (atomic_get(&futex->val) != (atomic_val_t)expected) { in z_impl_k_futex_wait() [all …]
|
D | CMakeLists.txt | 160 futex.c
|
/Zephyr-Core-3.6.0/lib/os/ |
D | sem.c | 56 atomic_set(&sem->futex.val, initial_count); in sys_sem_init() 67 old_value = bounded_inc(&sem->futex.val, in sys_sem_give() 70 ret = k_futex_wake(&sem->futex, true); in sys_sem_give() 89 old_value = bounded_dec(&sem->futex.val, in sys_sem_take() 95 ret = k_futex_wait(&sem->futex, in sys_sem_take() 104 int value = atomic_get(&sem->futex.val); in sys_sem_count_get()
|
/Zephyr-Core-3.6.0/tests/kernel/mem_protect/futex/src/ |
D | main.c | 52 static void futex_isr_wake(const void *futex) in futex_isr_wake() argument 54 k_futex_wake((struct k_futex *)futex, false); in futex_isr_wake() 57 static void futex_wake_from_isr(struct k_futex *futex) in futex_wake_from_isr() argument 59 irq_offload(futex_isr_wake, (const void *)futex); in futex_wake_from_isr() 171 ZTEST(futex, test_futex_wait_forever) in ZTEST() argument 191 ZTEST(futex, test_futex_wait_timeout) in ZTEST() argument 211 ZTEST(futex, test_futex_wait_nowait) in ZTEST() argument 233 ZTEST(futex, test_futex_wait_forever_wake) in ZTEST() argument 265 ZTEST(futex, test_futex_wait_timeout_wake) in ZTEST() argument 298 ZTEST(futex, test_futex_wait_nowait_wake) in ZTEST() argument [all …]
|
/Zephyr-Core-3.6.0/include/zephyr/sys/ |
D | sem.h | 36 struct k_futex futex; member 65 .futex = { _initial_count }, \
|
/Zephyr-Core-3.6.0/tests/kernel/mem_protect/futex/ |
D | CMakeLists.txt | 5 project(futex) project
|
/Zephyr-Core-3.6.0/include/zephyr/ |
D | kernel.h | 2174 __syscall int k_futex_wait(struct k_futex *futex, int expected, 2191 __syscall int k_futex_wake(struct k_futex *futex, bool wake_all);
|
/Zephyr-Core-3.6.0/doc/releases/ |
D | release-notes-2.4.rst | 1232 * :github:`27149` - [Coverity CID :211508] Unchecked return value in tests/kernel/mem_protect/futex…
|
D | release-notes-2.5.rst | 1724 * :github:`27829` - sys_mutex and futex missing documentation
|