pci_rebar_set_size(9)
π pci_rebar_set_size(9)
okay so this is a page from the Kernel API Manual bestie, and it's all about pci_rebar_set_size β the little function that gives your Resizable BAR a whole new size. glow-up for your BAR, fr fr β¨
πΈ NAME πΈ
pci_rebar_set_size β set a new size for a Resizable BAR
β¨ SYNOPSIS β¨
int pci_rebar_set_size (struct pci_dev *pdev , int bar , int size );
π ARGUMENTS π
pdevβ the PCI device, aka the main character π«Άbarβ which BAR you're setting the size of, pick your fightersizeβ the new size, exactly as defined in the PCIe spec (0=1MB,31=128TB) β yes literally up to 128TB, no cap π
π¦ DESCRIPTION π¦
Sets the new size of a BAR, as defined in the spec. that's the whole vibe. it just does the thing π
π RETURN π
Returns 0 if resizing was successful, or a negative value on error. slay when it's zero, sad girl hours when it's negative π
π SEE ALSO π
Kernel file ./drivers/pci/rebar.c and honestly the whole rebar friend group:
pci_rebar_bytes_to_size(9)pci_rebar_size_to_bytes(9)pci_rebar_find_pos(9)pci_rebar_get_possible_sizes(9)pci_rebar_size_supported(9)pci_rebar_get_max_size(9)pci_rebar_get_current_size(9)pci_resize_resource(9)
okay that's the whole page, you ate that π this icon of a manpage lives in ./drivers/pci and it's dated October 2026 β periodt, see you in the next kernel release bestie πβ¨
π¦ 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