find_pa_parent_type(9)
π find_pa_parent_type β the kernel page, but make it make sense
okay so this is a page from the Kernel API Manual (9), and it's literally about finding your fave's parent. no cap. let's get into it π
β¨ NAME β¨
find_pa_parent_type β find a parent of a specific type π«Ά
like, you have a device, you want its ancestor that matches a certain type. that's the whole vibe.
πΈ SYNOPSIS πΈ
const struct parisc_device * find_pa_parent_type (const struct parisc_device *padev , int type );
that's it. two args in, a const struct parisc_device * out. iconic signature honestly π
π¦ ARGUMENTS π¦
padevβ the device you start searching from. your main character. everything kicks off here β¨typeβ the device type you're hunting for. the vibe check you're running every ancestor against π₯
π DESCRIPTION π
so it walks up the device tree π β like, going from your girl upward through her ancestors β looking for a device of the specified type. if it finds one, it returns it. if it doesn't? it returns NULL. π nothing. no match. empty-handed. it's giving "no thoughts, head empty."
no cap, that's the entire behaviour. walk up, match the type, return it or return NULL. periodt. π
π§ SEE ALSO π§
the kernel file this lives in is ./arch/parisc/kernel/drivers.c β go read it bestie, it's right there π
and here's the whole friend group, all the (9) pages that keep this one company:
for_each_padev(9)match_device(9)register_parisc_driver(9)count_parisc_driver(9)unregister_parisc_driver(9)print_pa_hwpath(9)get_pci_node_path(9)print_pci_hwpath(9)alloc_tree_node(9)register_parisc_device(9)match_pci_device(9)match_parisc_device(9)parse_tree_node(9)hwpath_to_device(9)device_to_hwpath(9)walk_native_bus(9)walk_central_bus(9)init_parisc_bus(9)print_parisc_devices(9)
okay that's the whole page, you ate it up fr fr π₯π
tiny sign-off moment: this one lives under ./arch/parisc/kernel, and the version/date stamp on it is October 2026. screenshot it before it changes bestie πΈπΈ
π¦ 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