DPDK
25.11.0
Toggle main menu visibility
Loading...
Searching...
No Matches
rte_service_component.h
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright(c) 2017 Intel Corporation
3
*/
4
5
#ifndef _SERVICE_PRIVATE_H_
6
#define _SERVICE_PRIVATE_H_
7
8
/* This file specifies the internal service specification.
9
* Include this file if you are writing a component that requires CPU cycles to
10
* operate, and you wish to run the component using service cores
11
*/
12
13
#include <
rte_service.h
>
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
27
typedef
int32_t (*rte_service_func)(
void
*args);
28
35
struct
rte_service_spec
{
39
char
name
[RTE_SERVICE_NAME_MAX];
41
rte_service_func
callback
;
43
void
*
callback_userdata
;
47
uint32_t
capabilities
;
49
int
socket_id
;
50
};
51
80
int32_t rte_service_component_register(
const
struct
rte_service_spec
*spec,
81
uint32_t *service_id);
82
92
int32_t rte_service_component_unregister(uint32_t
id
);
93
107
int32_t rte_service_start_with_defaults(
void
);
108
121
int32_t rte_service_component_runstate_set(uint32_t
id
, uint32_t runstate);
122
132
int32_t rte_service_init(
void
);
133
140
void
rte_service_finalize(
void
);
141
142
#ifdef __cplusplus
143
}
144
#endif
145
146
#endif
/* _SERVICE_PRIVATE_H_ */
rte_service.h
rte_service_spec
Definition
rte_service_component.h:35
rte_service_spec::capabilities
uint32_t capabilities
Definition
rte_service_component.h:47
rte_service_spec::socket_id
int socket_id
Definition
rte_service_component.h:49
rte_service_spec::callback
rte_service_func callback
Definition
rte_service_component.h:41
rte_service_spec::name
char name[RTE_SERVICE_NAME_MAX]
Definition
rte_service_component.h:39
rte_service_spec::callback_userdata
void * callback_userdata
Definition
rte_service_component.h:43
lib
eal
include
rte_service_component.h
Generated by
1.17.0