pci_rebar_size_supported(9)
π 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 π
- Kernel file:
./drivers/pci/rebar.c 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_get_max_size(9)pci_rebar_get_current_size(9)pci_rebar_set_size(9)pci_resize_resource(9)
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
- 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