nRF Connect SDK API 0.1.0
|
int data_fifo_pointer_first_vacant_get | ( | struct data_fifo * | data_fifo, |
void ** | data, | ||
k_timeout_t | timeout | ||
) |
#include <include/data_fifo.h>
Get pointer to the first vacant block in slab.
Gives pointer to the first vacant memory block in the slab.
data_fifo | Pointer to the data_fifo structure. |
data | Double pointer to the memory area. If this function returns with success, the caller is now able to write to this memory block. The write operation must not exceed the block size max given to DATA_FIFO_DEFINE. |
timeout | Non-negative waiting period to wait for operation to complete (in milliseconds). Use K_NO_WAIT to return without waiting, or K_FOREVER to wait as long as necessary. |
0 | Memory allocated. |
value | Return values from k_mem_slab_alloc. |