pbus_select_window(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 πŸ¦‹


cute sign-off: source/version is ./drivers/pci, dated October 2026, and this page is pbus_select_window(9) πŸ’œ

πŸ“¦ where this page comes from