walk_native_bus(9)
π walk_native_bus(9) β it's giving Kernel API Manual π
okay so bestie, buckle up, because this one's a little kernel function from the walk_native_bus(9) page and it's literally about going door to door looking for devices on a bus. iykyk. π¦
β¨ NAME β¨
walk_native_bus β probe a bus for devices π (yes that's it, that's the whole gig)
πΈ SYNOPSIS πΈ
void walk_native_bus (unsigned long io_io_low , unsigned long io_io_high
, struct device *parent );
π ARGUMENTS π
io_io_lowβ the base address of this bus, like the first house on the street πio_io_highβ the last address of this bus, aka where the street ends πparentβ the parent bus device, the main character that all these little devices belong to π
π«Ά DESCRIPTION π«Ά
so a native bus (eg Runway or GSC) can have up to 64 devices on it, spaced at intervals of 0x1000 bytes. cute, right? a whole little neighborhood of devices. ποΈ
here's the thing though: PDC may not inform us of these devices, so we literally have to go probe for them ourselves. no cap. we're out here knocking on every door like hi bestie are you a device π
and unfortunately (and this is the not slay part), we may find devices which are not physically connected (such as extra serial & keyboard ports). so we're out here finding ghosts. phantom devices. the audacity. π
this problem is not yet solved. fr fr. it's a known thing, nobody's fixed it yet, we just live with it π«
π SEE ALSO π
kernel file ./arch/parisc/kernel/drivers.c β go read it, it's the source of truth π
and the whole friend group of related calls, all gathered here like a group chat:
for_each_padev(9)match_device(9)register_parisc_driver(9)count_parisc_driver(9)unregister_parisc_driver(9)find_pa_parent_type(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_central_bus(9)init_parisc_bus(9)print_parisc_devices(9)
and that's the whole page bestie!! π this one lives in ./arch/parisc/kernel and the version stamp says October 2026, so likeβ¦ from the future?? iconic. π§ββοΈβ periodt. π
π¦ 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