pci_rebar_size_supported(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pci_rebar_size_supported ✨

okay so bestie, this is a kernel API manual page β€” specifically the one for pci_rebar_size_supported(9) from the Kernel API Manual. she's a lil bool-returning cutie and honestly? iconic. let's get into it πŸŽ€


🌸 NAME 🌸

pci_rebar_size_supported β€” check if size is supported for BAR

like literally, that's her whole job. she checks the size. for the BAR. no cap. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

bool pci_rebar_size_supported (struct pci_dev *pdev , int bar , int size
);

that's it. three arguments. returning a bool. clean, simple, main character energy fr fr ✨


πŸ’œ ARGUMENTS πŸ’œ

  • pdev β€” the PCI device. the actual guy you're asking about 🫢
  • bar β€” the BAR to check. yes, that BAR. the one you want the tea on πŸ‘€
  • size β€” the encoded size, exactly as defined in the PCIe spec. and listen, the encoding is a whole vibe: 0=1MB, 31=128TB. so like, the numbers are NOT bytes, they're the encoded form, iykyk. don't come in here passing raw byte counts, she will clock it πŸ’€

⭐ RETURN ⭐

Returns true if bar is resizable and size is supported. otherwise false. both conditions, babes β€” resizable alone isn't enough, the size gotta be on the list too. periodt. πŸ‘‘


🌈 SEE ALSO 🌈

the whole rebar friend group honestly. go read them all, they're all slay, they all live in ./drivers/pci 🧚


ok that's the whole page bestie, no filler, no missing options, every single reference accounted for πŸ’…

and that's a wrap! this lil beauty came out of the ./drivers/pci directory, dated October 2026, and she's a proud pci_rebar_size_supported(9) from the Kernel API Manual. mwah πŸ’‹πŸŒΈβœ¨

πŸ“¦ where this page comes from