Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
test_mslab.h File Reference

Go to the source code of this file.

Macros

#define TIMEOUT   2000
 
#define BLK_NUM   3
 
#define BLK_ALIGN   8
 
#define BLK_SIZE   16
 

Functions

void tmslab_alloc_free (void *data)
 

Macro Definition Documentation

◆ BLK_ALIGN

#define BLK_ALIGN   8

◆ BLK_NUM

#define BLK_NUM   3

◆ BLK_SIZE

#define BLK_SIZE   16

◆ TIMEOUT

#define TIMEOUT   2000

Function Documentation

◆ tmslab_alloc_free()

void tmslab_alloc_free ( void data)

TESTPOINT: The memory slab's buffer contains slab_num_blocks memory blocks that are slab_block_size bytes long.

TESTPOINT: Allocate memory from a memory slab.

TESTPOINT:

Return values
0Memory allocated.

TESTPOINT: The block address area pointed at by mem is set to the starting address of the memory block.

TESTPOINT: Free memory allocated from a memory slab.