DPDK  21.08.0
Public Member Functions | Data Fields
rte_devargs Struct Reference

#include <rte_devargs.h>

Public Member Functions

 TAILQ_ENTRY (rte_devargs) next
 

Data Fields

enum rte_devtype type
 
enum rte_dev_policy policy
 
char name [RTE_DEV_NAME_MAX_LEN]
 
struct rte_busbus
 
struct rte_classcls
 
const char * bus_str
 
const char * cls_str
 
char * data
 
const char * args
 
const char * drv_str
 

Detailed Description

Structure that stores a device given by the user with its arguments

A user device is a physical or a virtual device given by the user to the DPDK application at startup through command line arguments.

The structure stores the configuration of the device, its PCI identifier if it's a PCI device or the driver name if it's a virtual device.

Examples:
examples/multi_process/hotplug_mp/commands.c.

Definition at line 77 of file rte_devargs.h.

Member Function Documentation

◆ TAILQ_ENTRY()

TAILQ_ENTRY ( rte_devargs  )

Next in list.

Field Documentation

◆ type

enum rte_devtype type

Type of device.

Definition at line 81 of file rte_devargs.h.

◆ policy

enum rte_dev_policy policy

Device policy.

Definition at line 83 of file rte_devargs.h.

◆ name

char name[RTE_DEV_NAME_MAX_LEN]

Name of the device.

Examples:
examples/multi_process/hotplug_mp/commands.c.

Definition at line 85 of file rte_devargs.h.

◆ args

const char* args

legacy name.

Examples:
examples/multi_process/hotplug_mp/commands.c.

Definition at line 88 of file rte_devargs.h.

◆ drv_str

const char* drv_str

driver-related part of device string.

Definition at line 89 of file rte_devargs.h.

◆ bus

struct rte_bus* bus

bus handle.

Examples:
examples/multi_process/hotplug_mp/commands.c.

Definition at line 91 of file rte_devargs.h.

◆ cls

struct rte_class* cls

class handle.

Definition at line 92 of file rte_devargs.h.

◆ bus_str

const char* bus_str

bus-related part of device string.

Definition at line 93 of file rte_devargs.h.

◆ cls_str

const char* cls_str

class-related part of device string.

Definition at line 94 of file rte_devargs.h.

◆ data

char* data

raw string including bus, class and driver parts.

Definition at line 95 of file rte_devargs.h.


The documentation for this struct was generated from the following file: