DPDK
20.11.5
lib
librte_eal
include
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
15
extern
"C"
{
16
#endif
17
21
enum
rte_lcore_state_t
{
22
WAIT
,
23
RUNNING
,
24
FINISHED
,
25
};
26
30
typedef
int (
lcore_function_t
)(
void
*);
31
65
int
rte_eal_remote_launch
(
lcore_function_t
*f,
void
*arg,
unsigned
worker_id);
66
71
enum
rte_rmt_call_main_t
{
72
SKIP_MAIN
= 0,
73
CALL_MAIN
,
74
};
75
76
/* These legacy definitions will be removed in future release */
77
#define SKIP_MASTER RTE_DEPRECATED(SKIP_MASTER) SKIP_MAIN
78
#define CALL_MASTER RTE_DEPRECATED(CALL_MASTER) CALL_MAIN
79
101
int
rte_eal_mp_remote_launch
(
lcore_function_t
*f,
void
*arg,
102
enum
rte_rmt_call_main_t
call_main);
103
114
enum
rte_lcore_state_t
rte_eal_get_lcore_state
(
unsigned
int
worker_id);
115
134
int
rte_eal_wait_lcore
(
unsigned
worker_id);
135
146
void
rte_eal_mp_wait_lcore
(
void
);
147
148
#ifdef __cplusplus
149
}
150
#endif
151
152
#endif
/* _RTE_LAUNCH_H_ */
rte_eal_mp_wait_lcore
void rte_eal_mp_wait_lcore(void)
WAIT
@ WAIT
Definition:
rte_launch.h:22
rte_eal_mp_remote_launch
int rte_eal_mp_remote_launch(lcore_function_t *f, void *arg, enum rte_rmt_call_main_t call_main)
FINISHED
@ FINISHED
Definition:
rte_launch.h:24
SKIP_MAIN
@ SKIP_MAIN
Definition:
rte_launch.h:72
rte_eal_remote_launch
int rte_eal_remote_launch(lcore_function_t *f, void *arg, unsigned worker_id)
rte_lcore_state_t
rte_lcore_state_t
Definition:
rte_launch.h:21
rte_eal_get_lcore_state
enum rte_lcore_state_t rte_eal_get_lcore_state(unsigned int worker_id)
RUNNING
@ RUNNING
Definition:
rte_launch.h:23
CALL_MAIN
@ CALL_MAIN
Definition:
rte_launch.h:73
lcore_function_t
int() lcore_function_t(void *)
Definition:
rte_launch.h:30
rte_rmt_call_main_t
rte_rmt_call_main_t
Definition:
rte_launch.h:71
rte_eal_wait_lcore
int rte_eal_wait_lcore(unsigned worker_id)
Generated by
1.8.17