DPDK  24.03.0-rc4
rte_alarm.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_ALARM_H_
6 #define _RTE_ALARM_H_
7 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 #include <stdint.h>
22 
26 typedef void (*rte_eal_alarm_callback)(void *arg);
27 
47 int rte_eal_alarm_set(uint64_t us, rte_eal_alarm_callback cb, void *cb_arg);
48 
70 int rte_eal_alarm_cancel(rte_eal_alarm_callback cb_fn, void *cb_arg);
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 
77 #endif /* _RTE_ALARM_H_ */
void(* rte_eal_alarm_callback)(void *arg)
Definition: rte_alarm.h:26
int rte_eal_alarm_set(uint64_t us, rte_eal_alarm_callback cb, void *cb_arg)
int rte_eal_alarm_cancel(rte_eal_alarm_callback cb_fn, void *cb_arg)