eeh_pe_bus_get(9)
π eeh_pe_bus_get(9) π
okay so this is a page from the Kernel API Manual β yes, the Kernel API Manual, like, the real one β and it's all about eeh_pe_bus_get. bestie, grab a snack, this one's short and sweet π
β¨ NAME β¨
eeh_pe_bus_get β retrieve the PCI bus associated with the given EEH PE, and it locks if needed π
π SYNOPSIS π
struct pci_bus * eeh_pe_bus_get (struct eeh_pe *pe );
πΈ ARGUMENTS πΈ
peβ pointer to the EEH PE. that's it, that's the whole argument list, she's low-maintenance π
π¦ DESCRIPTION π¦
ok so picture this: this function is basically a wrapper around _eeh_pe_bus_get, which is the one doing the actual retrieving of the PCI bus tied to the EEH PE structure you handed over. main character energy, but with backup π
the way that it works: it acquires the PCI rescans lock so that access to shared data stays safe the whole time it's doing the retrieval. no cap, that lock matters.
so when should you use this one? when you're the caller who needs the PCI bus while already holding the rescan/remove lock β typically during operations that modify or inspect PCIe device state in a safe manner. iykyk π§
π RETURN π
a pointer to the PCI bus associated with the EEH PE β or NULL if none found. that's the whole vibe check π
β SEE ALSO β
kernel file ./arch/powerpc/kernel/eeh_pe.c, plus a whole friend group of functions:
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_loc_get_bus(9)_eeh_pe_bus_get(9)eeh_pe_bus_get_nolock(9)
and that's the whole page, bestie!! it came from ./arch/powerpc/kernel, dated October 2026, and it's literally called eeh_pe_bus_get(9) β go forth and lock responsibly π«Άπ
π¦ 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