|
| K_MEM_SLAB_DEFINE (kmslab, 16, 3, 8) |
|
| K_SEM_DEFINE (SEM_HELPERDONE, 0, 1) |
|
| K_SEM_DEFINE (SEM_REGRESSDONE, 0, 1) |
|
static | K_THREAD_STACK_DEFINE (stack,(1024+CONFIG_TEST_EXTRA_STACK_SIZE)) |
|
void * | mslab_setup (void) |
|
void | tmslab_alloc_free (void *data) |
|
static void | tmslab_alloc_align (void *data) |
|
static void | tmslab_alloc_timeout (void *data) |
|
static void | tmslab_used_get (void *data) |
|
static void | helper_thread (void *p0, void *p1, void *p2) |
|
| ZTEST (mslab_api, test_mslab_kinit) |
| Initialize the memory slab using k_mem_slab_init() and allocates/frees blocks.
|
|
| ZTEST (mslab_api, test_mslab_kdefine) |
| Verify K_MEM_SLAB_DEFINE() with allocates/frees blocks.
|
|
| ZTEST (mslab_api, test_mslab_alloc_free_thread) |
| Verify alloc and free of blocks from mem_slab.
|
|
| ZTEST (mslab_api, test_mslab_alloc_align) |
| Allocate memory blocks and check for alignment of 8 bytes.
|
|
| ZTEST (mslab_api, test_mslab_alloc_timeout) |
| Verify allocation of memory blocks with timeouts.
|
|
| ZTEST (mslab_api, test_mslab_used_get) |
| Verify count of allocated blocks.
|
|
| ZTEST (mslab_api, test_mslab_pending) |
| Verify pending of allocating blocks.
|
|