nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ data_fifo_num_used_get()

int data_fifo_num_used_get ( struct data_fifo data_fifo,
uint32_t *  alloced_num,
uint32_t *  locked_num 
)

#include <include/data_fifo.h>

See how many alloced and locked blocks are in the system.

Parameters
data_fifoPointer to the data_fifo structure.
alloced_numNumber of used blocks in the slab.
locked_numNumber of used items in the message queue.
Return values
0Success.
-EACCESIllegal combination of used message queue items and slabs. If an error occurs, parameters will be set to UINT32_MAX.