| 
    Zephyr Project API
    3.4.0
    
   A Scalable Open Source RTOS 
   | 
 
Data Structures | |
| struct | test_running_cancel_timer | 
| struct | test_drain_wait_timer | 
| struct | state_1cpu_basic_schedule_running | 
Macros | |
| #define | STACK_SIZE (1024 + CONFIG_TEST_EXTRA_STACK_SIZE) | 
| #define | COOPHI_PRIORITY K_PRIO_COOP(0) /* = -4 */ | 
| #define | COOPLO_PRIORITY K_PRIO_COOP(3) /* = -1 */ | 
| #define | PREEMPT_PRIORITY K_PRIO_PREEMPT(1) /* = 1 */ | 
| #define | DELAY_MS 100 | 
| #define | DELAY_TIMEOUT K_MSEC(DELAY_MS) | 
Functions | |
| static | K_THREAD_STACK_DEFINE (coophi_stack,(1024+CONFIG_TEST_EXTRA_STACK_SIZE)) | 
| static int | coophi_counter (void) | 
| static | K_THREAD_STACK_DEFINE (cooplo_stack,(1024+CONFIG_TEST_EXTRA_STACK_SIZE)) | 
| static int | cooplo_counter (void) | 
| static int | coop_counter (struct k_work_q *wq) | 
| static | K_THREAD_STACK_DEFINE (preempt_stack,(1024+CONFIG_TEST_EXTRA_STACK_SIZE)) | 
| static int | preempt_counter (void) | 
| static | K_THREAD_STACK_DEFINE (invalid_test_stack,(1024+CONFIG_TEST_EXTRA_STACK_SIZE)) | 
| static int | system_counter (void) | 
| static void | reset_counters (void) | 
| static void | counter_handler (struct k_work *work) | 
| static void | handler_release (void) | 
| static void | async_release_cb (struct k_timer *timer) | 
| static | K_TIMER_DEFINE (async_releaser, async_release_cb, NULL) | 
| static void | async_release (void) | 
| static void | rel_handler (struct k_work *work) | 
| static void | delay_handler (struct k_work *work) | 
| static void | test_work_init (void) | 
| static void | test_delayable_init (void) | 
| ZTEST (work, test_unstarted) | |
| static void | test_queue_start (void) | 
| ZTEST (work, test_null_queue) | |
| ZTEST (work_1cpu, test_1cpu_simple_queue) | |
| ZTEST (work, test_smp_simple_queue) | |
| ZTEST (work_1cpu, test_1cpu_sync_queue) | |
| ZTEST (work_1cpu, test_1cpu_reentrant_queue) | |
| ZTEST (work_1cpu, test_1cpu_queued_flush) | |
| ZTEST (work_1cpu, test_1cpu_running_flush) | |
| ZTEST (work_1cpu, test_1cpu_delayed_flush) | |
| ZTEST (work_1cpu, test_1cpu_queued_cancel) | |
| ZTEST (work_1cpu, test_1cpu_queued_cancel_sync) | |
| ZTEST (work_1cpu, test_1cpu_delayed_cancel) | |
| ZTEST (work_1cpu, test_1cpu_delayed_cancel_sync) | |
| ZTEST (work_1cpu, test_1cpu_delayed_cancel_sync_wait) | |
| static void | test_running_cancel_cb (struct k_timer *timer) | 
| ZTEST (work_1cpu, test_1cpu_running_cancel) | |
| ZTEST (work_1cpu, test_1cpu_running_cancel_sync) | |
| ZTEST (work, test_smp_running_cancel) | |
| ZTEST (work, test_drain_empty) | |
| static void | test_drain_wait_cb (struct k_timer *timer) | 
| ZTEST (work_1cpu, test_1cpu_drain_wait) | |
| ZTEST (work_1cpu, test_1cpu_plugged_drain) | |
| ZTEST (work_1cpu, test_1cpu_basic_schedule) | |
| static void | handle_1cpu_basic_schedule_running (struct k_work *work) | 
| ZTEST (work_1cpu, test_1cpu_basic_schedule_running) | |
| ZTEST (work_1cpu, test_1cpu_immed_schedule) | |
| ZTEST (work_1cpu, test_1cpu_basic_reschedule) | |
| ZTEST (work_1cpu, test_1cpu_immed_reschedule) | |
| static bool | try_queue_no_yield (struct k_work_q *wq) | 
| ZTEST (work_1cpu, test_1cpu_queue_no_yield) | |
| ZTEST (work_1cpu, test_1cpu_system_queue) | |
| ZTEST (work_1cpu, test_1cpu_system_schedule) | |
| ZTEST (work_1cpu, test_1cpu_system_reschedule) | |
| ZTEST (work, test_nop) | |
| void * | workq_setup (void) | 
| ZTEST_SUITE (work_1cpu, NULL, workq_setup, ztest_simple_1cpu_before, ztest_simple_1cpu_after, NULL) | |
| ZTEST_SUITE (work, NULL, workq_setup, NULL, NULL, NULL) | |
Variables | |
| static struct k_sem | sync_sem | 
| static bool | run_flag = true | 
| static struct k_sem | rel_sem | 
| static struct k_work | work | 
| static struct k_work | work1 | 
| static struct k_work_delayable | dwork | 
| static struct k_work_sync | work_sync | 
| static struct k_thread * | main_thread | 
| static atomic_t | resubmits_left | 
| static uint32_t volatile | last_handle_ms | 
| static struct k_work_q | coophi_queue | 
| static struct k_work_q | not_start_queue | 
| static atomic_t | coophi_ctr | 
| static struct k_work_q | cooplo_queue | 
| static atomic_t | cooplo_ctr | 
| static struct k_work_q | preempt_queue | 
| static atomic_t | preempt_ctr | 
| static struct k_work_q | invalid_test_queue | 
| static atomic_t | system_ctr | 
| static struct test_running_cancel_timer | test_running_cancel_ctx | 
| static struct test_drain_wait_timer | test_drain_wait_ctx | 
| #define COOPHI_PRIORITY K_PRIO_COOP(0) /* = -4 */ | 
| #define COOPLO_PRIORITY K_PRIO_COOP(3) /* = -1 */ | 
| #define DELAY_MS 100 | 
| #define PREEMPT_PRIORITY K_PRIO_PREEMPT(1) /* = 1 */ | 
| #define STACK_SIZE (1024 + CONFIG_TEST_EXTRA_STACK_SIZE) | 
      
  | 
  inlinestatic | 
      
  | 
  static | 
      
  | 
  inlinestatic | 
      
  | 
  inlinestatic | 
      
  | 
  inlinestatic | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  inlinestatic | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  inlinestatic | 
      
  | 
  static | 
      
  | 
  inlinestatic | 
      
  | 
  inlinestatic | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
| void * workq_setup | ( | void | ) | 
| ZTEST | ( | work | , | 
| test_drain_empty | |||
| ) | 
| ZTEST | ( | work | , | 
| test_nop | |||
| ) | 
| ZTEST | ( | work | , | 
| test_null_queue | |||
| ) | 
| ZTEST | ( | work | , | 
| test_smp_running_cancel | |||
| ) | 
| ZTEST | ( | work | , | 
| test_smp_simple_queue | |||
| ) | 
| ZTEST | ( | work | , | 
| test_unstarted | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_basic_reschedule | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_basic_schedule | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_basic_schedule_running | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_delayed_cancel | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_delayed_cancel_sync | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_delayed_cancel_sync_wait | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_delayed_flush | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_drain_wait | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_immed_reschedule | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_immed_schedule | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_plugged_drain | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_queue_no_yield | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_queued_cancel | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_queued_cancel_sync | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_queued_flush | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_reentrant_queue | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_running_cancel | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_running_cancel_sync | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_running_flush | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_simple_queue | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_sync_queue | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_system_queue | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_system_reschedule | |||
| ) | 
| ZTEST | ( | work_1cpu | , | 
| test_1cpu_system_schedule | |||
| ) | 
| ZTEST_SUITE | ( | work | , | 
| NULL | , | ||
| workq_setup | , | ||
| NULL | , | ||
| NULL | , | ||
| NULL | |||
| ) | 
| ZTEST_SUITE | ( | work_1cpu | , | 
| NULL | , | ||
| workq_setup | , | ||
| ztest_simple_1cpu_before | , | ||
| ztest_simple_1cpu_after | , | ||
| NULL | |||
| ) | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static |