Zephyr API Documentation
3.3.0
A Scalable Open Source RTOS
|
|
3.3.0 |
#include "test_queue.h"
Macros | |
#define | STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) |
#define | LIST_LEN 2 |
#define | QUEUE_NUM 10 |
Verify that multiple queues can be defined simultaneously. | |
Functions | |
K_QUEUE_DEFINE (kqueue) | |
K_HEAP_DEFINE (mem_pool_fail, 8+128) | |
K_HEAP_DEFINE (mem_pool_pass, 64 *4+128) | |
static | K_THREAD_STACK_DEFINE (tstack,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) |
static | K_THREAD_STACK_DEFINE (tstack1,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) |
static | K_THREAD_STACK_DEFINE (tstack2,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) |
static void | tqueue_append (struct k_queue *pqueue) |
static void | tqueue_get (struct k_queue *pqueue) |
static void | tIsr_entry_append (const void *p) |
static void | tIsr_entry_get (const void *p) |
static void | tThread_entry (void *p1, void *p2, void *p3) |
static void | tqueue_thread_thread (struct k_queue *pqueue) |
static void | tqueue_thread_isr (struct k_queue *pqueue) |
static void | tqueue_isr_thread (struct k_queue *pqueue) |
ZTEST (queue_api_1cpu, test_queue_thread2thread) | |
Verify data passing between threads using queue. | |
ZTEST (queue_api, test_queue_thread2isr) | |
Verify data passing between thread and ISR. | |
ZTEST (queue_api, test_queue_isr2thread) | |
Verify data passing between ISR and thread. | |
static void | tThread_get (void *p1, void *p2, void *p3) |
static void | tqueue_get_2threads (struct k_queue *pqueue) |
ZTEST (queue_api_1cpu, test_queue_get_2threads) | |
Verify k_queue_get() | |
static void | tqueue_alloc (struct k_queue *pqueue) |
ZTEST (queue_api, test_queue_alloc) | |
Test queue alloc append and prepend. | |
static void | queue_poll_race_consume (void *p1, void *p2, void *p3) |
ZTEST (queue_api_1cpu, test_queue_poll_race) | |
ZTEST (queue_api, test_multiple_queues) | |
void | user_access_queue_private_data (void *p1, void *p2, void *p3) |
ZTEST (queue_api, test_access_kernel_obj_with_priv_data) | |
Test access kernel object with private data using system call. | |
static void | low_prio_wait_for_queue (void *p1, void *p2, void *p3) |
static void | high_prio_t1_wait_for_queue (void *p1, void *p2, void *p3) |
static void | high_prio_t2_wait_for_queue (void *p1, void *p2, void *p3) |
ZTEST (queue_api_1cpu, test_queue_multithread_competition) | |
Test multi-threads to get data from a queue. | |
ZTEST (queue_api, test_queue_unique_append) | |
Verify k_queue_unique_append() | |
Variables | |
struct k_queue | queue |
static qdata_t | data [2] |
static qdata_t | data_p [2] |
static qdata_t | data_l [2] |
static qdata_t | data_sl [2] |
static qdata_t * | data_append |
static qdata_t * | data_prepend |
static struct k_thread | tdata |
static struct k_thread | tdata1 |
static struct k_thread | tdata2 |
static struct k_sem | end_sema |
#define LIST_LEN 2 |
#define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) |
|
static |
|
static |
K_HEAP_DEFINE | ( | mem_pool_fail | , |
8+ | 128 | ||
) |
K_HEAP_DEFINE | ( | mem_pool_pass | , |
64 *4+ | 128 | ||
) |
K_QUEUE_DEFINE | ( | kqueue | ) |
TESTPOINT: init via K_QUEUE_DEFINE
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
TESTPOINT: queue append
TESTPOINT: queue prepend
TESTPOINT: queue append list
TESTPOINT: queue merge slist
|
static |
TESTPOINT: queue get
TESTPOINT: queue get
|
static |
|
static |
TESTPOINT: isr-thread data passing via queue
|
static |
TESTPOINT: thread-isr data passing via queue
|
static |
TESTPOINT: thread-thread data passing via queue
|
static |
|
static |
void user_access_queue_private_data | ( | void * | p1, |
void * | p2, | ||
void * | p3 | ||
) |
ZTEST | ( | queue_api | , |
test_access_kernel_obj_with_priv_data | |||
) |
Test access kernel object with private data using system call.
ZTEST | ( | queue_api | , |
test_multiple_queues | |||
) |
ZTEST | ( | queue_api_1cpu | , |
test_queue_poll_race | |||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
struct k_queue queue |
|
static |
|
static |
|
static |