pci_epc_bar...to_rebar_cap(9)
β¨ pci_epc_bar_size_to_rebar_cap β¨
Okay so bestie, real talk: you're in the Kernel API Manual and the page you've got open is pci_epc_bar...to_rebar_cap(9) β a mouthful, I know, but stay with me, it's lowkey a one-job function and it does that job flawlessly. π
πΈ NAME πΈ
pci_epc_bar_size_to_rebar_cap β convert a size to the representation used by the Resizable BAR Capability Register. That's it. That's the whole vibe. π
π¦ SYNOPSIS π¦
int pci_epc_bar_size_to_rebar_cap (size_t size , u32 *cap );
Like, look at her. Two params, one return, zero drama. π
π ARGUMENTS π
sizeβ the size you wanna convert, bestie. Hand it over.capβ where the result gets stored. Give her a pointer to write into and she'll do the rest. π«Ά
π DESCRIPTION π
So here's the tea: this function returns 0 on success and a negative error code in case of error. That's literally the whole description. No hidden twists, no plot, no cap. Not me being obsessed with a function that's this straightforward π β she just converts and reports back. β
π₯ SEE ALSO π₯
Kernel file ./drivers/pci/endpoint/pci-epc-core.c β that's where the magic lives, go read her siblings:
pci_epc_put(9)pci_epc_get(9)pci_epc_get_first_free_bar(9)pci_epc_get_next_free_bar(9)pci_epc_get_features(9)pci_epc_get_aux_resources_count(9)pci_epc_get_aux_resources(9)pci_epc_stop(9)pci_epc_start(9)pci_epc_raise_irq(9)pci_epc_map_msi_irq(9)pci_epc_get_msi(9)pci_epc_set_msi(9)pci_epc_get_msix(9)pci_epc_set_msix(9)pci_epc_unmap_addr(9)pci_epc_map_addr(9)pci_epc_mem_map(9)pci_epc_mem_unmap(9)pci_epc_clear_bar(9)pci_epc_set_bar(9)pci_epc_write_header(9)pci_epc_add_epf(9)pci_epc_remove_epf(9)pci_epc_linkup(9)pci_epc_linkdown(9)pci_epc_init_notify(9)pci_epc_notify_pending_init(9)pci_epc_deinit_notify(9)pci_epc_bus_master_enable_notify(9)pci_epc_destroy(9)__pci_epc_create(9)__devm_pci_epc_create(9)
Yeah that's a long list, she has a big friend group, respect it. π§
Okay bestie that's the whole page β sourced from ./drivers/pci/endpoint, dated October 2026, and yeah the footer still says pci_epc_bar...to_rebar_cap(9) because we don't abbreviate legends in this house. Now go convert those sizes. Slay. π
π¦ 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