eeh_pe_tree_insert(9)
π eeh_pe_tree_insert(9) β the Kernel API Manual, bestie edition π
okay so this is a page from the Kernel API Manual (eeh_pe_tree_insert(9), yes the whole name is a mouthful, iykyk) and we're about to make it make sense. Strap in. π¦
β¨ NAME β¨
eeh_pe_tree_insert β literally just adds an EEH device to its parent PE. that's the whole vibe. π
πΈ SYNOPSIS πΈ
int eeh_pe_tree_insert (struct eeh_dev *edev, struct eeh_pe *new_pe_parent);
like look at her. two params. does exactly what it says. main character energy fr. β
π ARGUMENTS π
edevβ the EEH device in question, the little guy we're placing πnew_pe_parentβ the PE you want to create extra PEs under, i.e. the parent-to-be π«Ά
π DESCRIPTION π
so here's the tea β: this function adds your EEH device to the PE sitting at edev->pe_config_addr.
if a PE already exists at that address? slay, no new object needed β edev just gets added to that existing PE. easy. β¨
but if there's no PE at that address yet? not me spawning a whole new PE π β one gets created and inserted into the PE tree as a child of new_pe_parent. that's the whole plot.
and ooh, important detail bestie π: ifnew_pe_parentisNULL, the new PE gets inserted directly under the PHB. no middleman, no cap.
π¦ SEE ALSO π¦
the whole friend group, gathered here for you π«Ά β and they all live in the kernel file ./arch/powerpc/kernel/eeh_pe.c:
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_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)
mwah π that's the page! brought to you from ./arch/powerpc/kernel, stamped October 2026, and it's eeh_pe_tree_insert(9) all the way down. go read the source, bestie, you got this πβ¨
π¦ 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