|
Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
|
Xen event channel interface. More...
Go to the source code of this file.
Data Structures | |
| struct | event_channel_handle |
Typedefs | |
| typedef void(* | evtchn_cb_t) (void *priv) |
| typedef struct event_channel_handle | evtchn_handle_t |
Functions | |
| int | evtchn_status (evtchn_status_t *status) |
| int | evtchn_close (evtchn_port_t port) |
| int | evtchn_set_priority (evtchn_port_t port, uint32_t priority) |
| int | notify_evtchn (evtchn_port_t port) |
| int | alloc_unbound_event_channel (domid_t remote_dom) |
| Allocate event-channel between caller and remote domain. | |
| int | bind_interdomain_event_channel (domid_t remote_dom, evtchn_port_t remote_port, evtchn_cb_t cb, void *data) |
| Allocate local event channel, binded to remote port and attach specified callback to it. | |
| int | bind_event_channel (evtchn_port_t port, evtchn_cb_t cb, void *data) |
| Bind user-defined handler to specified event-channel. | |
| int | unbind_event_channel (evtchn_port_t port) |
| Unbind handler from event channel, substitute it with empty callback. | |
| int | get_missed_events (evtchn_port_t port) |
| Check if missed events are present on specified port. | |
| int | mask_event_channel (evtchn_port_t port) |
| Disable event processing on specified port. | |
| int | unmask_event_channel (evtchn_port_t port) |
| Enable event processing on specified port. | |
| void | clear_event_channel (evtchn_port_t port) |
| Clear event channel from pending events. | |
| int | xen_events_init (void) |
| Initialize Xen event channel driver, used on initialization. | |
Xen event channel interface.
This file provides the interface for managing Xen event channels, including allocation, binding, and callback management.
| typedef void(* evtchn_cb_t) (void *priv) |
| typedef struct event_channel_handle evtchn_handle_t |
| int alloc_unbound_event_channel | ( | domid_t | remote_dom | ) |
Allocate event-channel between caller and remote domain.
| remote_dom | remote domain domid |
| port | local event channel port on success |
| -errno | negative code on error |
| int bind_event_channel | ( | evtchn_port_t | port, |
| evtchn_cb_t | cb, | ||
| void * | data ) |
Bind user-defined handler to specified event-channel.
| port | event channel number |
| cb | pointer to event channel handler |
| data | private data, that will be passed to handler as parameter |
| 0 | on success |
| int bind_interdomain_event_channel | ( | domid_t | remote_dom, |
| evtchn_port_t | remote_port, | ||
| evtchn_cb_t | cb, | ||
| void * | data ) |
Allocate local event channel, binded to remote port and attach specified callback to it.
| remote_dom | remote domain domid |
| remote_port | remote domain event channel port number |
| cb | callback, attached to locat port |
| data | private data, that will be passed to cb |
| port | local event channel port on success |
| -errno | negative code on error |
| void clear_event_channel | ( | evtchn_port_t | port | ) |
Clear event channel from pending events.
| port | event channel number |
| int evtchn_close | ( | evtchn_port_t | port | ) |
| int evtchn_set_priority | ( | evtchn_port_t | port, |
| uint32_t | priority ) |
| int evtchn_status | ( | evtchn_status_t * | status | ) |
| int get_missed_events | ( | evtchn_port_t | port | ) |
Check if missed events are present on specified port.
| port | event channel number |
| 1 | if missed events are present |
| 0 | otherwise |
| int mask_event_channel | ( | evtchn_port_t | port | ) |
Disable event processing on specified port.
| port | event channel number |
| 0 | on success |
| -errno | negative code on error |
| int notify_evtchn | ( | evtchn_port_t | port | ) |
| int unbind_event_channel | ( | evtchn_port_t | port | ) |
Unbind handler from event channel, substitute it with empty callback.
| port | event channel number to unbind |
| 0 | on success |
| int unmask_event_channel | ( | evtchn_port_t | port | ) |
Enable event processing on specified port.
| port | event channel number |
| 0 | on success |
| -errno | negative code on error |
| int xen_events_init | ( | void | ) |
Initialize Xen event channel driver, used on initialization.
| 0 | on success |
| -errno | negative code on error |