pci_rebar_ge...ssible_sizes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pci_rebar_ge...ssible_sizes(9) πŸ’…

okay so this little icon lives in the Kernel API Manual, and honestly? it's a glow-up for anyone trying to figure out how big a Resizable BAR can actually get. bestie, let's get into it ✨


🌸 NAME 🌸

pci_rebar_get_possible_sizes β€” get possible sizes for Resizable BAR

like, all the sizes it could be. the full menu. the whole vibe check πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

u64 pci_rebar_get_possible_sizes (struct pci_dev *pdev , int bar );

that's the whole thing. no cap, she's compact πŸ’œ


✨ ARGUMENTS ✨

  • pdev β€” the PCI device, aka the main character you're asking about πŸ‘‘
  • bar β€” the BAR to query, like "which one, babe?" 🧚

πŸ’– DESCRIPTION πŸ’–

Get the possible sizes of a resizable BAR as a bitmask. that's it, that's the whole plot πŸ“


πŸ”₯ RETURN πŸ”₯

A bitmask of possible sizes (bit 0=1MB, bit 31=128TB), or 0 if the BAR isn't resizable 😭

lowkey important: if you get 0 back, that BAR is not resizable, periodt. don't go reading into it πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./drivers/pci/rebar.c plus the whole friend group:


and that's the whole page, bestie 🫢 it's giving ./drivers/pci, dated October 2026 β€” iconic, no notes πŸ’…β­

πŸ“¦ where this page comes from