Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
RTIO CQE Flags. More...
Macros | |
#define | RTIO_CQE_FLAG_MEMPOOL_BUFFER BIT(0) |
The entry's buffer was allocated from the RTIO's mempool. | |
#define | RTIO_CQE_FLAG_GET(flags) FIELD_GET(GENMASK(7, 0), (flags)) |
#define | RTIO_CQE_FLAG_MEMPOOL_GET_BLK_IDX(flags) FIELD_GET(GENMASK(19, 8), (flags)) |
Get the block index of a mempool flags. | |
#define | RTIO_CQE_FLAG_MEMPOOL_GET_BLK_CNT(flags) FIELD_GET(GENMASK(31, 20), (flags)) |
Get the block count of a mempool flags. | |
#define | RTIO_CQE_FLAG_PREP_MEMPOOL(blk_idx, blk_cnt) |
Prepare CQE flags for a mempool read. | |
RTIO CQE Flags.
#include <include/zephyr/rtio/rtio.h>
#define RTIO_CQE_FLAG_MEMPOOL_BUFFER BIT(0) |
#include <include/zephyr/rtio/rtio.h>
The entry's buffer was allocated from the RTIO's mempool.
If this bit is set, the buffer was allocated from the memory pool and should be recycled as soon as the application is done with it.
#include <include/zephyr/rtio/rtio.h>
Get the block count of a mempool flags.
flags | The CQE flags value |
#include <include/zephyr/rtio/rtio.h>
Get the block index of a mempool flags.
flags | The CQE flags value |
#define RTIO_CQE_FLAG_PREP_MEMPOOL | ( | blk_idx, | |
blk_cnt | |||
) |
#include <include/zephyr/rtio/rtio.h>
Prepare CQE flags for a mempool read.
blk_idx | The mempool block index |
blk_cnt | The mempool block count |