eeh_pe_loc_get_bus(9)
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:
eeh_set_pe_aux_size(9)eeh_pe_alloc(9)eeh_phb_pe_create(9)eeh_wait_state(9)eeh_phb_pe_get(9)eeh_pe_next(9)eeh_pe_traverse(9)eeh_pe_dev_traverse(9)__eeh_pe_get(9)eeh_pe_get(9)eeh_pe_tree_insert(9)eeh_pe_tree_remove(9)eeh_pe_update_time_stamp(9)eeh_pe_state_mark(9)eeh_pe_mark_isolated(9)eeh_pe_state_clear(9)eeh_restore_one_device_bars(9)eeh_pe_restore_bars(9)eeh_pe_loc_get(9)_eeh_pe_bus_get(9)eeh_pe_bus_get(9)eeh_pe_bus_get_nolock(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms