DPDK 22.11.7
rte_launch.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_LAUNCH_H_
6#define _RTE_LAUNCH_H_
7
14#ifdef __cplusplus
15extern "C" {
16#endif
17
22 WAIT,
24 RUNNING,
26};
27
31typedef int (lcore_function_t)(void *);
32
67int rte_eal_remote_launch(lcore_function_t *f, void *arg, unsigned worker_id);
68
76};
77
100 enum rte_rmt_call_main_t call_main);
101
112enum rte_lcore_state_t rte_eal_get_lcore_state(unsigned int worker_id);
113
130int rte_eal_wait_lcore(unsigned worker_id);
131
143
144#ifdef __cplusplus
145}
146#endif
147
148#endif /* _RTE_LAUNCH_H_ */
int() lcore_function_t(void *)
Definition: rte_launch.h:31
int rte_eal_remote_launch(lcore_function_t *f, void *arg, unsigned worker_id)
enum rte_lcore_state_t rte_eal_get_lcore_state(unsigned int worker_id)
void rte_eal_mp_wait_lcore(void)
rte_rmt_call_main_t
Definition: rte_launch.h:73
@ CALL_MAIN
Definition: rte_launch.h:75
@ SKIP_MAIN
Definition: rte_launch.h:74
rte_lcore_state_t
Definition: rte_launch.h:21
@ RUNNING
Definition: rte_launch.h:24
@ WAIT
Definition: rte_launch.h:22
int rte_eal_mp_remote_launch(lcore_function_t *f, void *arg, enum rte_rmt_call_main_t call_main)
int rte_eal_wait_lcore(unsigned worker_id)