epf_ntb_con...ad_bar_alloc(9)
π epf_ntb_config_spad_bar_alloc β Kernel API Manual, bestie edition β¨
okay so this is a page from the Kernel API Manual, and it's about epf_ntb_config_spad_bar_alloc β yes the whole name, the header just clipped it to epf_ntb_con...ad_bar_alloc because even manpage headers get tired π
πΈ NAME πΈ
epf_ntb_config_spad_bar_alloc β allocate memory for the config + scratchpad region, bestie π
π¦ SYNOPSIS π¦
int epf_ntb_config_spad_bar_alloc (struct epf_ntb *ntb );
that's it. that's the whole call. iconic π
π ARGUMENTS π
ntbβ the NTB device that facilitates communication between HOST and VHOST π«Ά (she's the main character here, the whole hostβvhost situationship runs through her)
β¨ DESCRIPTION β¨
So what she does is allocate the Local Memory mentioned in the above diagram π (yes, that diagram β iykyk).
The size of the CONFIG REGION is sizeof(struct epf_ntb_ctrl), periodt. No cap, that's the exact size, don't come for me.
And the size of the SCRATCHPAD REGION? That one's not hardcoded β it's obtained from the "spad-count" configfs entry. So whatever you put in there is what you get, lowkey π₯
π RETURN π
Zero for success π β or an error code in case of failure π (she will let you know, she's honest like that)
π§ SEE ALSO π§
the kernel file itself, right here:
./drivers/pci/endpoint/functions/pci-epf-vntb.c
and the whole friend group π:
epf_ntb_link_up(9)epf_ntb_configure_mw(9)epf_ntb_teardown_mw(9)epf_ntb_cmd_handler(9)epf_ntb_config_sspad_bar_clear(9)epf_ntb_config_sspad_bar_set(9)epf_ntb_config_spad_bar_free(9)epf_ntb_configure_interrupt(9)epf_ntb_db_bar_init(9)epf_ntb_db_bar_clear(9)epf_ntb_mw_bar_init(9)epf_ntb_mw_bar_clear(9)epf_ntb_is_bar_used(9)epf_ntb_find_bar(9)epf_ntb_init_epc_bar(9)epf_ntb_epc_init(9)epf_ntb_epc_cleanup(9)epf_ntb_add_cfs(9)epf_ntb_bind(9)epf_ntb_unbind(9)epf_ntb_probe(9)
like, the entire epf_ntb_* friend group showed up to the group chat, and honestly? obsessed π«Ά
and that's the page bestie!! π she lives in ./drivers/pci/endpoint/functions, she's dated October 2026, and she's filed under epf_ntb_con...ad_bar_alloc(9) β go read the source, 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