Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Tests for Kernel Futex objects. More...
void | test_futex_wait_forever (void) |
Test k_futex_wait() forever. More... | |
void | test_futex_locate_access (void) |
Test kernel supports locating kernel objects without private kernel data anywhere in memory, control access with the memory domain configuration. More... | |
void | test_futex_wait_timeout (void) |
void | test_futex_wait_nowait (void) |
void | test_futex_wait_forever_wake (void) |
Test k_futex_wait() and k_futex_wake() More... | |
void | test_futex_wait_timeout_wake (void) |
void | test_futex_wait_nowait_wake (void) |
void | test_futex_wait_forever_wake_from_isr (void) |
void | test_futex_multiple_threads_wait_wake (void) |
void | test_multiple_futex_wait_wake (void) |
void | test_user_futex_bad (void) |
void | futex_wait_wake (void *p1, void *p2, void *p3) |
void | futex_wake (void *p1, void *p2, void *p3) |
void | test_main (void) |
Tests for Kernel Futex objects.
#include <tests/kernel/mem_protect/futex/src/main.c>
#include <tests/kernel/mem_protect/futex/src/main.c>
#include <tests/kernel/mem_protect/futex/src/main.c>
Test kernel supports locating kernel objects without private kernel data anywhere in memory, control access with the memory domain configuration.
For that test kernel object which doesn't contain private kernel data will be used futex. Test performs handshaking between two user threads to test next requirements:
#include <tests/kernel/mem_protect/futex/src/main.c>
#include <tests/kernel/mem_protect/futex/src/main.c>
Test k_futex_wait() forever.
#include <tests/kernel/mem_protect/futex/src/main.c>
Test k_futex_wait() and k_futex_wake()
#include <tests/kernel/mem_protect/futex/src/main.c>
#include <tests/kernel/mem_protect/futex/src/main.c>
#include <tests/kernel/mem_protect/futex/src/main.c>
#include <tests/kernel/mem_protect/futex/src/main.c>
#include <tests/kernel/mem_protect/futex/src/main.c>
#include <tests/kernel/mem_protect/futex/src/main.c>
test case main entry
#include <tests/kernel/mem_protect/futex/src/main.c>
#include <tests/kernel/mem_protect/futex/src/main.c>