pci_rebar_get_max_size(9)
π¦ pci_rebar_get_max_size(9) π¦
okay bestie, this is a page from the Kernel API Manual β and yes, we are about to find out the biggest supported size of a resizable BAR. iconic behavior only π
β¨ NAME β¨
pci_rebar_get_max_size β get the maximum supported size of a BAR π
π SYNOPSIS π
int pci_rebar_get_max_size (struct pci_dev *pdev , int bar );
π ARGUMENTS π
pdevβ the PCI device π³barβ the BAR to query π―
πΈ DESCRIPTION πΈ
Get the largest supported size of a resizable BAR as a size. That's it, that's the vibe β it's giving "maximum supported size" realness β¨
π₯ RETURN π₯
It returns the encoded maximum BAR size as defined in the PCIe spec β 0=1MB, 31=128TB β or -NOENT on error. No cap, those are the exact numbers π«Ά
real talk: this is the encoded value, so don't treat it like a raw byte count without checking the encoding, iykyk.
π«Ά 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_get_possible_sizes(9)pci_rebar_size_supported(9)pci_rebar_get_current_size(9)pci_rebar_set_size(9)pci_resize_resource(9)
mwah π this cutie came from ./drivers/pci, dated October 2026. bestie signing off π
π¦ 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