Home
last modified time | relevance | path

Searched refs:k_futex (Results 1 – 7 of 7) sorted by relevance

/Zephyr-Core-3.5.0/kernel/
Dfutex.c15 static struct z_futex_data *k_futex_find_data(struct k_futex *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()
55 static inline int z_vrfy_k_futex_wake(struct k_futex *futex, bool wake_all) in z_vrfy_k_futex_wake()
57 if (Z_SYSCALL_MEMORY_WRITE(futex, sizeof(struct k_futex)) != 0) { 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()
92 static inline int z_vrfy_k_futex_wait(struct k_futex *futex, int expected, in z_vrfy_k_futex_wait()
95 if (Z_SYSCALL_MEMORY_WRITE(futex, sizeof(struct k_futex)) != 0) { in z_vrfy_k_futex_wait()
/Zephyr-Core-3.5.0/tests/kernel/mem_protect/futex/src/
Dmain.c39 ZTEST_BMEM struct k_futex simple_futex;
40 ZTEST_BMEM struct k_futex multiple_futex[TOTAL_THREADS_WAITING];
41 struct k_futex no_access_futex;
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()
434 ret = k_futex_wait((struct k_futex *)&not_a_futex, 0, K_NO_WAIT); in ZTEST_USER()
436 ret = k_futex_wake((struct k_futex *)&not_a_futex, false); in ZTEST_USER()
440 ret = k_futex_wait((struct k_futex *)&also_not_a_futex, 0, K_NO_WAIT); in ZTEST_USER()
442 ret = k_futex_wake((struct k_futex *)&also_not_a_futex, false); in ZTEST_USER()
/Zephyr-Core-3.5.0/include/zephyr/sys/
Dsem.h36 struct k_futex futex;
/Zephyr-Core-3.5.0/doc/kernel/services/synchronization/
Dmutexes.rst173 k_futex is a lightweight mutual exclusion primitive designed to minimize
175 to shared memory. k_futex are tracked as kernel objects and can live in
/Zephyr-Core-3.5.0/include/zephyr/
Dkernel.h85 struct k_futex;
2139 struct k_futex { struct
2185 __syscall int k_futex_wait(struct k_futex *futex, int expected,
2202 __syscall int k_futex_wake(struct k_futex *futex, bool wake_all);
/Zephyr-Core-3.5.0/tests/kernel/mem_protect/mem_protect/src/
Dkobject.c1323 struct k_futex f;
/Zephyr-Core-3.5.0/doc/releases/
Drelease-notes-2.0.rst46 * Userspace mutexes are now supported through the new k_futex primitive.