Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ivshmem.h File Reference
#include <zephyr/types.h>
#include <stddef.h>
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/syscalls/ivshmem.h>

Go to the source code of this file.

Functions

size_t ivshmem_get_mem (const struct device *dev, uintptr_t *memmap)
 Get the inter-VM shared memory.
uint32_t ivshmem_get_id (const struct device *dev)
 Get our VM ID.
uint16_t ivshmem_get_vectors (const struct device *dev)
 Get the number of interrupt vectors we can use.
int ivshmem_int_peer (const struct device *dev, uint32_t peer_id, uint16_t vector)
 Interrupt another VM.
int ivshmem_register_handler (const struct device *dev, struct k_poll_signal *signal, uint16_t vector)
 Register a vector notification (interrupt) handler.
size_t ivshmem_get_rw_mem_section (const struct device *dev, uintptr_t *memmap)
 Get the ivshmem read/write section (ivshmem-v2 only).
size_t ivshmem_get_output_mem_section (const struct device *dev, uint32_t peer_id, uintptr_t *memmap)
 Get the ivshmem output section for a peer (ivshmem-v2 only).
uint32_t ivshmem_get_state (const struct device *dev, uint32_t peer_id)
 Get the state value of a peer (ivshmem-v2 only).
int ivshmem_set_state (const struct device *dev, uint32_t state)
 Set our state (ivshmem-v2 only).
uint32_t ivshmem_get_max_peers (const struct device *dev)
 Get the maximum number of peers supported (ivshmem-v2 only).
uint16_t ivshmem_get_protocol (const struct device *dev)
 Get the protocol used by this ivshmem instance (ivshmem-v2 only).
int ivshmem_enable_interrupts (const struct device *dev, bool enable)
 Set the interrupt enablement for our VM (ivshmem-v2 only).