Home
last modified time | relevance | path

Searched refs:futex (Results 1 – 9 of 9) sorted by relevance

/Zephyr-Core-3.7.0/kernel/
Dfutex.c15 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 …]
DCMakeLists.txt195 futex.c
/Zephyr-Core-3.7.0/lib/os/
Dsem.c55 (void)atomic_set(&sem->futex.val, initial_count); in sys_sem_init()
66 old_value = bounded_inc(&sem->futex.val, in sys_sem_give()
69 ret = k_futex_wake(&sem->futex, true); in sys_sem_give()
88 old_value = bounded_dec(&sem->futex.val, in sys_sem_take()
94 ret = k_futex_wait(&sem->futex, in sys_sem_take()
103 int value = atomic_get(&sem->futex.val); in sys_sem_count_get()
/Zephyr-Core-3.7.0/tests/kernel/mem_protect/futex/src/
Dmain.c52 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.7.0/include/zephyr/sys/
Dsem.h36 struct k_futex futex; member
65 .futex = { _initial_count }, \
/Zephyr-Core-3.7.0/tests/kernel/mem_protect/futex/
DCMakeLists.txt5 project(futex) project
/Zephyr-Core-3.7.0/include/zephyr/
Dkernel.h2268 __syscall int k_futex_wait(struct k_futex *futex, int expected,
2285 __syscall int k_futex_wake(struct k_futex *futex, bool wake_all);
/Zephyr-Core-3.7.0/doc/releases/
Drelease-notes-2.4.rst1232 * :github:`27149` - [Coverity CID :211508] Unchecked return value in tests/kernel/mem_protect/futex
Drelease-notes-2.5.rst1724 * :github:`27829` - sys_mutex and futex missing documentation