| 
    Zephyr Project API
    3.4.0
    
   A Scalable Open Source RTOS 
   | 
 
Data Structures | |
| struct | fifo_msg | 
Macros | |
| #define | SIGNAL_RESULT 0x1ee7d00d | 
| #define | FIFO_MSG_VALUE 0xdeadbeef | 
| #define | MSGQ_MSG_SIZE 4 | 
| #define | MSGQ_MAX_MSGS 16 | 
| #define | MSGQ_MSG_VALUE {'a', 'b', 'c', 'd'} | 
| #define | STACK_SIZE (1024 + CONFIG_TEST_EXTRA_STACK_SIZE) | 
| #define | TAG_0 10 | 
| #define | TAG_1 11 | 
| #define | TAG_2 12 | 
| #define | TAG_3 13 | 
| #define | USE_FIFO (1 << 0) | 
| #define | USE_MSGQ (1 << 1) | 
Functions | |
| K_THREAD_STACK_DEFINE (test_stack,(1024+CONFIG_TEST_EXTRA_STACK_SIZE)) | |
| K_THREAD_STACK_DEFINE (test_loprio_stack,(1024+CONFIG_TEST_EXTRA_STACK_SIZE)) | |
| ZTEST_USER (poll_api_1cpu, test_poll_no_wait) | |
| Test poll events with no wait.  More... | |
| static | K_SEM_DEFINE (wait_sem, 0, 1) | 
| static | K_FIFO_DEFINE (wait_fifo) | 
| static void | poll_wait_helper (void *use_queuelike, void *msgq, void *p3) | 
| void | check_results (struct k_poll_event *events, uint32_t event_type, bool is_available) | 
| ZTEST (poll_api_1cpu, test_poll_wait) | |
| Test polling with wait.  More... | |
| static void | poll_cancel_helper (void *p1, void *p2, void *p3) | 
| void | test_poll_cancel (bool is_main_low_prio) | 
| Test polling of cancelled fifo.  More... | |
| ZTEST (poll_api_1cpu, test_poll_cancel_main_low_prio) | |
| ZTEST (poll_api_1cpu, test_poll_cancel_main_high_prio) | |
| static | K_SEM_DEFINE (multi_sem, 0, 1) | 
| static void | multi_lowprio (void *p1, void *p2, void *p3) | 
| static | K_SEM_DEFINE (multi_reply, 0, 1) | 
| static void | multi (void *p1, void *p2, void *p3) | 
| static | K_SEM_DEFINE (multi_ready_sem, 1, 1) | 
| ZTEST (poll_api, test_poll_multi) | |
| Test polling of multiple events.  More... | |
| static void | threadstate (void *p1, void *p2, void *p3) | 
| ZTEST (poll_api_1cpu, test_poll_threadstate) | |
| Test polling of events by manipulating polling thread state.  More... | |
| void | poll_test_grant_access (void) | 
| ZTEST (poll_api_1cpu, test_poll_zero_events) | |
| void | polling_event (void *p1, void *p2, void *p3) | 
| ZTEST (poll_api_1cpu, test_detect_is_polling) | |
| Detect is_polling is false in signal_poll_event()  More... | |
Variables | |
| static struct k_sem | no_wait_sem | 
| static struct k_fifo | no_wait_fifo | 
| static struct k_poll_signal | no_wait_signal | 
| static struct k_poll_signal | test_signal | 
| static struct k_sem | zero_events_sem | 
| static struct k_thread | test_thread | 
| static struct k_thread | test_loprio_thread | 
| static struct k_msgq | wait_msgq | 
| static struct k_msgq * | wait_msgq_ptr | 
| static struct k_poll_signal | wait_signal | 
| struct fifo_msg | wait_msg = { NULL, 0xdeadbeef } | 
| struct k_poll_event | wait_events [] | 
| static struct k_fifo | cancel_fifo | 
| static struct k_fifo | non_cancel_fifo | 
| static struct k_poll_signal | signal | 
| #define FIFO_MSG_VALUE 0xdeadbeef | 
| #define MSGQ_MAX_MSGS 16 | 
| #define MSGQ_MSG_SIZE 4 | 
| #define SIGNAL_RESULT 0x1ee7d00d | 
| #define STACK_SIZE (1024 + CONFIG_TEST_EXTRA_STACK_SIZE) | 
| #define TAG_0 10 | 
| #define TAG_1 11 | 
| #define TAG_2 12 | 
| #define TAG_3 13 | 
| #define USE_FIFO (1 << 0) | 
| #define USE_MSGQ (1 << 1) | 
| void check_results | ( | struct k_poll_event * | events, | 
| uint32_t | event_type, | ||
| bool | is_available | ||
| ) | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
| K_THREAD_STACK_DEFINE | ( | test_loprio_stack | , | 
| (1024+CONFIG_TEST_EXTRA_STACK_SIZE) | |||
| ) | 
| K_THREAD_STACK_DEFINE | ( | test_stack | , | 
| (1024+CONFIG_TEST_EXTRA_STACK_SIZE) | |||
| ) | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
| void poll_test_grant_access | ( | void | ) | 
      
  | 
  static | 
| void polling_event | ( | void * | p1, | 
| void * | p2, | ||
| void * | p3 | ||
| ) | 
      
  | 
  static | 
| ZTEST | ( | poll_api_1cpu | , | 
| test_poll_cancel_main_high_prio | |||
| ) | 
| ZTEST | ( | poll_api_1cpu | , | 
| test_poll_cancel_main_low_prio | |||
| ) | 
| ZTEST | ( | poll_api_1cpu | , | 
| test_poll_zero_events | |||
| ) | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
| struct k_poll_event wait_events[] | 
| struct fifo_msg wait_msg = { NULL, 0xdeadbeef } | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static |