spdk_pci_device_provider Struct Reference

Public Member Functions

 TAILQ_ENTRY (spdk_pci_device_provider) tailq
 

Data Fields

const char * name
 
int(* attach_cb )(const struct spdk_pci_addr *addr)
 Callback executed to attach a PCI device on a given address. More...
 
void(* detach_cb )(struct spdk_pci_device *dev)
 Callback executed to detach a given PCI device. More...
 

Field Documentation

◆ attach_cb

int(* spdk_pci_device_provider::attach_cb) (const struct spdk_pci_addr *addr)

Callback executed to attach a PCI device on a given address.

Parameters
addraddress of the device.
Returns
0 if the device was attached successfully, negative errno otherwise.

◆ detach_cb

void(* spdk_pci_device_provider::detach_cb) (struct spdk_pci_device *dev)

Callback executed to detach a given PCI device.

The provider to detach the device is selected based on the type of the device and the name of the provider (i.e. dev->type == provider->name).

Parameters
devPCI device to detach.

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