eeh_pe_loc_get_bus(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

eeh_pe_loc_get_bus(9) β€” Kernel API Manual bestie briefing ✨

🌸 NAME 🌸

eeh_pe_loc_get_bus β€” Retrieve location code binding to the given PCI bus πŸ’–

✨ SYNOPSIS ✨

const char * eeh_pe_loc_get_bus (struct pci_bus *bus );

πŸŽ€ ARGUMENTS πŸŽ€

  • bus β€” PCI bus. That’s the bus bestie is asking about 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so eeh_pe_loc_get_bus retrieves the location code associated with the given PCI bus. If the bus is a root bus, the location code is fetched from the PHB device tree node or root port. Otherwise, the location code is obtained from the device tree node of the upstream bridge of the bus. The function walks up the bus hierarchy if necessary, checking each node for the appropriate location code property: "ibm,io-base-loc-code" for root buses, and "ibm,slot-location-code" for others. If no location code is found, it returns "N/A". Periodt πŸ’…

🌈 SEE ALSO 🌈

Kernel file ./arch/powerpc/kernel/eeh_pe.c and these iconic little functions, no cap:


That’s the whole location-code saga, bestie! Signed off from the ./arch/powerpc/kernel source corner, dated October 2026, in the Kernel API Manual era πŸ’–πŸ«Ά

πŸ“¦ where this page comes from