Zephyr Project API
3.3.0
A Scalable Open Source RTOS
|
RTIO Simple Executor. More...
Data Structures | |
struct | rtio_simple_executor |
Simple Executor. More... | |
Macros | |
#define | RTIO_EXECUTOR_SIMPLE_DEFINE(name) struct rtio_simple_executor name = { .ctx = { .api = &z_rtio_simple_api } }; |
Define a simple executor with a given name. More... | |
Functions | |
int | rtio_simple_submit (struct rtio *r) |
Submit to the simple executor. More... | |
void | rtio_simple_ok (struct rtio *r, const struct rtio_sqe *sqe, int result) |
Report a SQE has completed successfully. More... | |
void | rtio_simple_err (struct rtio *r, const struct rtio_sqe *sqe, int result) |
Report a SQE has completed with error. More... | |
RTIO Simple Executor.
Provides the simplest possible executor without any concurrency or reinterpretation of requests.
#define RTIO_EXECUTOR_SIMPLE_DEFINE | ( | name | ) | struct rtio_simple_executor name = { .ctx = { .api = &z_rtio_simple_api } }; |
#include <include/zephyr/rtio/rtio_executor_simple.h>
Define a simple executor with a given name.
INTERNAL_HIDDEN
name | Symbol name, must be unique in the context in which its used |
#include <include/zephyr/rtio/rtio_executor_simple.h>
Report a SQE has completed with error.
r | RTIO context to use |
sqe | RTIO SQE to report success |
result | Result of the SQE |
#include <include/zephyr/rtio/rtio_executor_simple.h>
Report a SQE has completed successfully.
r | RTIO context to use |
sqe | RTIO SQE to report success |
result | Result of the SQE |
int rtio_simple_submit | ( | struct rtio * | r | ) |
#include <include/zephyr/rtio/rtio_executor_simple.h>
Submit to the simple executor.
r | RTIO context to submit |
0 | always succeeds |