eeh_phb_pe_create(9)
π eeh_phb_pe_create(9) β Kernel API Manual π
okay so bestie, we're in the Kernel API Manual today and the star of the show is eeh_phb_pe_create π
yes it's exactly as iconic as it sounds.
β¨ NAME β¨
eeh_phb_pe_create β Create PHB PE π«Ά
πΈ SYNOPSIS πΈ
int eeh_phb_pe_create (struct pci_controller *phb );
π ARGUMENTS π
phbβ the PCI controller, your main character of the moment π
π¦ DESCRIPTION π¦
So here's the vibe: you call this function while the PHB is being detected during system boot, or during PCI hotplug, and what it does is create the PHB PE. That's it, that's the whole thing β¨ like it's literally the origin story.
ngl, timing matters β the manpage is clear that this is meant for the boot-time / hotplug detection moment, not just whenever you feel like it π
π₯ SEE ALSO π₯
the whole friend group, no cap β these all hang out in the Kernel file ./arch/powerpc/kernel/eeh_pe.c:
eeh_set_pe_aux_size(9)eeh_pe_alloc(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(9)eeh_pe_bus_get_nolock(9)
that's the whole page bestie, go forth and create PHB PEs responsibly ππ
sign-off szn: this lil masterpiece lives in ./arch/powerpc/kernel, dated October 2026 β mwah π ate and left no crumbs ππ§
π¦ 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