DPDK  19.08.0-rc0
rte_interrupts.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2010-2014 Intel Corporation
3  */
4 
5 #ifndef _RTE_INTERRUPTS_H_
6 #define _RTE_INTERRUPTS_H_
7 
8 #include <rte_common.h>
9 #include <rte_compat.h>
10 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
23 struct rte_intr_handle;
24 
26 typedef void (*rte_intr_callback_fn)(void *cb_arg);
27 
32 typedef void (*rte_intr_unregister_callback_fn)(struct rte_intr_handle *intr_handle,
33  void *cb_arg);
34 
35 #include "rte_eal_interrupts.h"
36 
51 int rte_intr_callback_register(const struct rte_intr_handle *intr_handle,
52  rte_intr_callback_fn cb, void *cb_arg);
53 
69 int rte_intr_callback_unregister(const struct rte_intr_handle *intr_handle,
70  rte_intr_callback_fn cb, void *cb_arg);
71 
91 int __rte_experimental
93  rte_intr_callback_fn cb_fn, void *cb_arg,
95 
106 int rte_intr_enable(const struct rte_intr_handle *intr_handle);
107 
118 int rte_intr_disable(const struct rte_intr_handle *intr_handle);
119 
120 #ifdef __cplusplus
121 }
122 #endif
123 
124 #endif
int rte_intr_callback_register(const struct rte_intr_handle *intr_handle, rte_intr_callback_fn cb, void *cb_arg)
int __rte_experimental rte_intr_callback_unregister_pending(const struct rte_intr_handle *intr_handle, rte_intr_callback_fn cb_fn, void *cb_arg, rte_intr_unregister_callback_fn ucb_fn)
int rte_intr_disable(const struct rte_intr_handle *intr_handle)
void(* rte_intr_unregister_callback_fn)(struct rte_intr_handle *intr_handle, void *cb_arg)
void(* rte_intr_callback_fn)(void *cb_arg)
int rte_intr_enable(const struct rte_intr_handle *intr_handle)
int rte_intr_callback_unregister(const struct rte_intr_handle *intr_handle, rte_intr_callback_fn cb, void *cb_arg)