pci_rebar_set_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 fighter
  • size β€” 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:


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