PCI_CREATE_SLOT - Online Linux Manual PageSection : 9
Updated : June 2018
Source : Kernel Hackers Manual 2.6.
Note : Hardware Interfaces
NAMEpci_create_slot − create or increment refcount for physical PCI slot
SYNOPSISstruct pci_slot * pci_create_slot(struct pci_bus * parent, int slot_nr, const char * name, struct hotplug_slot * hotplug);
ARGUMENTSparent struct pci_bus of parent bridge slot_nr PCI_SLOT(pci_dev−>devfn) or −1 for placeholder name user visible string presented in /sys/bus/pci/slots/<name> hotplug set if caller is hotplug driver, NULL otherwise
DESCRIPTIONPCI slots have first class attributes such as address, speed, width, and a struct pci_slot is used to manage them. This interface will either return a new struct pci_slot to the caller, or if the pci_slot already exists, its refcount will be incremented. Slots are uniquely identified by a pci_bus, slot_nr tuple. There are known platforms with broken firmware that assign the same name to multiple slots. Workaround these broken platforms by renaming the slots on behalf of the caller. If firmware assigns name N to
MULTIPLE SLOTSThe first slot is assigned N The second slot is assigned N−1 The third slot is assigned N−2 etc.
PLACEHOLDER SLOTSIn most cases, pci_bus, slot_nr will be sufficient to uniquely identify a slot. There is one notable exception − pSeries (rpaphp), where the slot_nr cannot be determined until a device is actually inserted into the slot. In this scenario, the caller may pass −1 for slot_nr. The following semantics are imposed when the caller passes slot_nr == −1. First, we no longer check for an existing struct pci_slot, as there may be many slots with slot_nr of −1. The other change in semantics is user−visible, which is the ´address´ parameter presented in sysfs will
CONSIST SOLELY OF A DDDDbb tuple, where dddd is the PCI domain of the struct pci_bus and bb is the bus number. In other words, the devfn of the ´placeholder´ slot will not be displayed.
COPYRIGHT
0
Johanes Gumabo
Data Size : 8,165 byte
man-pci_create_slot.9Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 182,286
Visitor ID : :
Visitor IP : 18.188.195.90 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.