pbus_select_window(9)
okay bestie, welcome to pbus_select_window(9) from the Kernel API Manual β this is the kernel page that picks a bridge window for a resource, and itβs lowkey iconic πβ¨
πΈ NAME πΈ
pbus_select_window β select bridge window for a resource π
β¨ SYNOPSIS β¨
copy this exactly, no cap:
struct resource * pbus_select_window (struct pci_bus *bus , const struct resource *res );
π«Ά ARGUMENTS π«Ά
busβ PCI bus πresβ Resource π
π DESCRIPTION π
okay so the whole vibe: select the bridge window for res. If the resource is already assigned, return the current bridge window. periodt. π¦
For memory resources, the selection is done as follows β follow the little flowchart in your head, bestie:
- Any non-prefetchable resource is put into the non-prefetchable window.
- If there is no prefetchable MMIO window, put all memory resources into the non-prefetchable window.
- If thereβs a 64-bit prefetchable MMIO window, put all 64-bit prefetchable resources into it and place 32-bit prefetchable memory into the non-prefetchable window.
- Otherwise, put all prefetchable resources into the prefetchable window.
π RETURN π
the bridge window resource or NULL if no bridge window is found. thatβs the whole answer β NULL means no bridge window found, fr fr. π
π¦ SEE ALSO π¦
- Kernel file
./drivers/pci/setup-bus.c pci_dev_res_add_to_list(9),pbus_select_window_for_type(9),reassign_resources_sorted(9),assign_requested_resources_sorted(9),pbus_size_io(9),pbus_size_mem(9)
cute sign-off: source/version is ./drivers/pci, dated October 2026, and this page is pbus_select_window(9) π
π¦ 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