DPDK
2.0.0
|
#include <exec-env/rte_interrupts.h>
Typedefs | |
typedef void(* | rte_intr_callback_fn )(struct rte_intr_handle *intr_handle, void *cb_arg) |
Functions | |
int | rte_intr_callback_register (struct rte_intr_handle *intr_handle, rte_intr_callback_fn cb, void *cb_arg) |
int | rte_intr_callback_unregister (struct rte_intr_handle *intr_handle, rte_intr_callback_fn cb, void *cb_arg) |
int | rte_intr_enable (struct rte_intr_handle *intr_handle) |
int | rte_intr_disable (struct rte_intr_handle *intr_handle) |
The RTE interrupt interface provides functions to register/unregister callbacks for a specific interrupt.
typedef void(* rte_intr_callback_fn)(struct rte_intr_handle *intr_handle, void *cb_arg) |
Function to be registered for the specific interrupt
int rte_intr_callback_register | ( | struct rte_intr_handle * | intr_handle, |
rte_intr_callback_fn | cb, | ||
void * | cb_arg | ||
) |
It registers the callback for the specific interrupt. Multiple callbacks cal be registered at the same time.
intr_handle | Pointer to the interrupt handle. |
cb | callback address. |
cb_arg | address of parameter for callback. |
int rte_intr_callback_unregister | ( | struct rte_intr_handle * | intr_handle, |
rte_intr_callback_fn | cb, | ||
void * | cb_arg | ||
) |
It unregisters the callback according to the specified interrupt handle.
intr_handle | pointer to the interrupt handle. |
cb | callback address. |
cb_arg | address of parameter for callback, (void *)-1 means to remove all registered which has the same callback address. |
int rte_intr_disable | ( | struct rte_intr_handle * | intr_handle | ) |
It disables the interrupt for the specified handle.
intr_handle | pointer to the interrupt handle. |
int rte_intr_enable | ( | struct rte_intr_handle * | intr_handle | ) |
It enables the interrupt for the specified handle.
intr_handle | pointer to the interrupt handle. |