DPDK
18.02.2
Main Page
Related Pages
Data Structures
Files
Examples
File List
Globals
lib
librte_eal
common
include
rte_devargs.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright 2014 6WIND S.A.
3
*/
4
5
#ifndef _RTE_DEVARGS_H_
6
#define _RTE_DEVARGS_H_
7
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
23
#include <stdio.h>
24
#include <sys/queue.h>
25
#include <rte_compat.h>
26
#include <
rte_bus.h
>
27
31
enum
rte_devtype
{
32
RTE_DEVTYPE_WHITELISTED_PCI,
33
RTE_DEVTYPE_BLACKLISTED_PCI,
34
RTE_DEVTYPE_VIRTUAL,
35
};
36
47
struct
rte_devargs
{
49
TAILQ_ENTRY
(
rte_devargs
) next;
51
enum
rte_devtype
type
;
53
enum
rte_dev_policy
policy
;
55
struct
rte_bus
*
bus
;
57
char
name
[RTE_DEV_NAME_MAX_LEN];
59
char
*
args
;
60
};
61
63
TAILQ_HEAD
(rte_devargs_list,
rte_devargs
);
64
66
extern
struct
rte_devargs_list
devargs_list
;
67
93
int
rte_eal_parse_devargs_str
(
const
char
*devargs_str,
94
char
**drvname,
char
**drvargs);
95
112
int
__rte_experimental
113
rte_eal_devargs_parse
(
const
char
*dev,
114
struct
rte_devargs
*da);
115
126
int
__rte_experimental
127
rte_eal_devargs_insert
(
struct
rte_devargs
*da);
128
151
int
rte_eal_devargs_add
(
enum
rte_devtype
devtype,
const
char
*devargs_str);
152
169
int
__rte_experimental
rte_eal_devargs_remove
(
const
char
*busname,
170
const
char
*devname);
171
181
unsigned
int
182
rte_eal_devargs_type_count
(
enum
rte_devtype
devtype);
183
190
void
rte_eal_devargs_dump
(FILE *f);
191
192
#ifdef __cplusplus
193
}
194
#endif
195
196
#endif
/* _RTE_DEVARGS_H_ */
Generated by
1.8.1.2