pci_rebar_ge...ssible_sizes(9)
π 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:
pci_rebar_bytes_to_size(9)pci_rebar_size_to_bytes(9)pci_rebar_find_pos(9)pci_rebar_size_supported(9)pci_rebar_get_max_size(9)pci_rebar_get_current_size(9)pci_rebar_set_size(9)pci_resize_resource(9)
and that's the whole page, bestie π«Ά it's giving ./drivers/pci, dated October 2026 β iconic, no notes π
β
π¦ 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