![]() |
![]() |
![]() |
Disconnect from the PCI server
#include <hw/pci.h> int pci_detach( unsigned handle );
libc
The pci_detach() function disconnects from the PCI server. Any resources allocated with pci_attach_device() are released.
![]() |
Don't call any of the other pci_*() functions after calling pci_detach() (unless you've reattached with pci_attach()). |
The handle argument is the value returned by a successful call to pci_attach().
PCI_SUCCESS.
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
pci_attach(), pci_attach_device(), pci_detach_device(), pci_find_class(), pci_find_device(), pci_present(), pci_read_config(), pci_read_config8(), pci_read_config16(), pci_read_config32(), pci_rescan_bus(), pci_write_config(), pci_write_config8(), pci_write_config16(), pci_write_config32()
![]() |
![]() |
![]() |