Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
main.c File Reference
#include <ztest.h>
#include <irq_offload.h>
#include <debug/stack.h>

Macros

#define STACKSIZE   (256 + CONFIG_TEST_EXTRA_STACKSIZE)
 

Functions

static K_THREAD_STACK_DEFINE (dyn_thread_stack,(256+CONFIG_TEST_EXTRA_STACKSIZE))
 
static K_SEM_DEFINE (start_sem, 0, 1)
 
static K_SEM_DEFINE (end_sem, 0, 1)
 
void k_sys_fatal_error_handler (unsigned int reason, const z_arch_esf_t *esf)
 Fatal error policy handler. More...
 
static void dyn_thread_entry (void *p1, void *p2, void *p3)
 
static void prep (void)
 
static void create_dynamic_thread (void)
 
static void permission_test (void)
 
static void test_dyn_thread_perms (void)
 Test object permission on dynamic user thread when index is reused. More...
 
static void test_thread_index_management (void)
 
static void test_kernel_create_dyn_user_thread (void)
 Test creation of dynamic user thread under kernel thread. More...
 
static void test_user_create_dyn_user_thread (void)
 Test creation of dynamic user thread under user thread. More...
 
void test_main (void)
 

Variables

static ZTEST_BMEM struct k_threaddyn_thread
 
static struct k_threaddynamic_threads [CONFIG_MAX_THREAD_BYTES *8]
 

Macro Definition Documentation

◆ STACKSIZE

#define STACKSIZE   (256 + CONFIG_TEST_EXTRA_STACKSIZE)

Function Documentation

◆ create_dynamic_thread()

static void create_dynamic_thread ( void  )
static

◆ dyn_thread_entry()

static void dyn_thread_entry ( void p1,
void p2,
void p3 
)
static

◆ K_SEM_DEFINE() [1/2]

static K_SEM_DEFINE ( end_sem  ,
,
 
)
static

◆ K_SEM_DEFINE() [2/2]

static K_SEM_DEFINE ( start_sem  ,
,
 
)
static

◆ K_THREAD_STACK_DEFINE()

static K_THREAD_STACK_DEFINE ( dyn_thread_stack  ,
(256+CONFIG_TEST_EXTRA_STACKSIZE)   
)
static

◆ permission_test()

static void permission_test ( void  )
static

◆ prep()

static void prep ( void  )
static

◆ test_main()

void test_main ( void  )

test case main entry

◆ test_thread_index_management()

static void test_thread_index_management ( void  )
static

Variable Documentation

◆ dyn_thread

ZTEST_BMEM struct k_thread* dyn_thread
static

◆ dynamic_threads

struct k_thread* dynamic_threads[CONFIG_MAX_THREAD_BYTES *8]
static