Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
|
|
3.0.0 |
IPC service static VRINGs API. More...
Data Structures | |
struct | ipc_static_vrings |
Static VRINGs structure. More... | |
Macros | |
#define | VRING_COUNT (2) |
#define | VRING_ALIGNMENT CONFIG_IPC_SERVICE_STATIC_VRINGS_ALIGNMENT |
Typedefs | |
typedef void(* | ipc_notify_cb) (struct virtqueue *vq, void *priv) |
Define the notify callback. More... | |
Functions | |
int | ipc_static_vrings_init (struct ipc_static_vrings *vr, unsigned int role) |
Init the static VRINGs. More... | |
IPC service static VRINGs API.
#define VRING_ALIGNMENT CONFIG_IPC_SERVICE_STATIC_VRINGS_ALIGNMENT |
#include <include/ipc/ipc_static_vrings.h>
VRING alignment.
#define VRING_COUNT (2) |
#include <include/ipc/ipc_static_vrings.h>
Number of used VRING buffers.
ipc_notify_cb |
#include <include/ipc/ipc_static_vrings.h>
Define the notify callback.
This callback is defined at instance level and it is called on virtqueue notify.
vq | Virtqueue. |
priv | Priv data. |
int ipc_static_vrings_init | ( | struct ipc_static_vrings * | vr, |
unsigned int | role | ||
) |
#include <include/ipc/ipc_static_vrings.h>
Init the static VRINGs.
Init VRINGs and Virtqueues of an OpenAMP / RPMsg instance.
vr | Pointer to the VRINGs instance struct. |
role | Master / Remote role. |
-EINVAL | When some parameter is missing. |
-ENOMEM | When memory is not enough for VQs allocation. |
0 | If successful. |
Other | errno codes depending on the OpenAMP implementation. |