Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
|
#include <stdint.h>
#include <zephyr/device.h>
#include <zephyr/rtio/rtio.h>
#include <zephyr/sys/p4wq.h>
Go to the source code of this file.
Data Structures | |
struct | rtio_work_req |
RTIO Work request. More... | |
Typedefs | |
typedef void(* | rtio_work_submit_t) (struct rtio_iodev_sqe *iodev_sqe) |
Callback API to execute work operation. | |
Functions | |
struct rtio_work_req * | rtio_work_req_alloc (void) |
Allocate item to perform an RTIO work request. | |
void | rtio_work_req_submit (struct rtio_work_req *req, struct rtio_iodev_sqe *iodev_sqe, rtio_work_submit_t handler) |
Submit RTIO work request. | |
uint32_t | rtio_work_req_used_count_get (void) |
Obtain number of currently used items from the pre-allocated pool. | |
typedef void(* rtio_work_submit_t) (struct rtio_iodev_sqe *iodev_sqe) |
Callback API to execute work operation.
iodev_sqe | Associated SQE operation. |
struct rtio_work_req * rtio_work_req_alloc | ( | void | ) |
Allocate item to perform an RTIO work request.
This allocation utilizes its internal memory slab with pre-allocated elements.
void rtio_work_req_submit | ( | struct rtio_work_req * | req, |
struct rtio_iodev_sqe * | iodev_sqe, | ||
rtio_work_submit_t | handler ) |
Submit RTIO work request.
req | Item to fill with request information. |
iodev_sqe | RTIO Operation information. |
handler | Callback to handler where work operation is performed. |
uint32_t rtio_work_req_used_count_get | ( | void | ) |
Obtain number of currently used items from the pre-allocated pool.