table of contents
rte_bus.h(3) | DPDK | rte_bus.h(3) |
NAME¶
rte_bus.h
SYNOPSIS¶
#include <stdio.h>
#include <rte_eal.h>
Typedefs¶
typedef int(* rte_bus_cmp_t) (const struct rte_bus
*bus, const void *data)
Functions¶
const char * rte_bus_name (const struct rte_bus *bus)
int rte_bus_scan (void)
int rte_bus_probe (void)
void rte_bus_dump (FILE *f)
struct rte_bus * rte_bus_find (const struct rte_bus *start,
rte_bus_cmp_t cmp, const void *data)
struct rte_bus * rte_bus_find_by_device (const struct rte_device *dev)
struct rte_bus * rte_bus_find_by_name (const char *busname)
enum rte_iova_mode rte_bus_get_iommu_class (void)
Detailed Description¶
DPDK device bus interface
This file exposes API and interfaces for bus abstraction over the devices and drivers in EAL.
Definition in file rte_bus.h.
Typedef Documentation¶
typedef int(* rte_bus_cmp_t) (const struct rte_bus *bus, const void *data)¶
Bus comparison function.
Parameters
data Data to compare against.
Returns
Definition at line 80 of file rte_bus.h.
Function Documentation¶
const char* rte_bus_name (const struct rte_bus * bus)¶
Retrieve a bus name.
Parameters
Returns
int rte_bus_scan (void)¶
Scan all the buses.
Returns
int rte_bus_probe (void)¶
For each device on the buses, perform a driver 'match' and call the driver-specific probe for device initialization.
Returns
void rte_bus_dump (FILE * f)¶
Dump information of all the buses registered with EAL.
Parameters
struct rte_bus* rte_bus_find (const struct rte_bus * start, rte_bus_cmp_t cmp, const void * data)¶
Bus iterator to find a particular bus.
This function compares each registered bus to find one that matches the data passed as parameter.
If the comparison function returns zero this function will stop iterating over any more buses. To continue a search the bus of a previous search can be passed via the start parameter.
Parameters
cmp Comparison function.
data Data to pass to comparison function.
Returns
struct rte_bus* rte_bus_find_by_device (const struct rte_device * dev)¶
Find the registered bus for a particular device.
struct rte_bus* rte_bus_find_by_name (const char * busname)¶
Find the registered bus for a given name.
enum rte_iova_mode rte_bus_get_iommu_class (void)¶
Get the common iommu class of devices bound on to buses available in the system. RTE_IOVA_DC means that no preference has been expressed.
Returns
Author¶
Generated automatically by Doxygen for DPDK from the source code.
Fri Dec 15 2023 | Version 23.11.0 |