epf_ntb_configure_mw(9)
β¨ epf_ntb_configure_mw(9) β¨
okay bestie, welcome to the Kernel API Manual π«Ά this one's a function page β epf_ntb_configure_mw(9) β and it's lowkey the moment the Outbound Address Space gets set up so VHOST can reach into HOST's memory window. no cap, it's giving glue-code-that-actually-matters π
πΈ NAME πΈ
epf_ntb_configure_mw β Configure the Outbound Address Space so VHOST can access the memory window of HOST
β SYNOPSIS β
int epf_ntb_configure_mw (struct epf_ntb *ntb , u32 mw );
π ARGUMENTS π
ntbβ the NTB device that facilitates communication between HOST and VHOST. literally the whole reason this function exists, she's the main character πmwβ the index of the memory window. and ngl it has to be one of these four: either0,1,2or3. that's the whole range, periodt.
π¦ DESCRIPTION π¦
okay so picture this: we're talking about the EP Outbound Window. here's the diagram, exactly as our ancestors drew it π
βββββββββββββ
β β
β β
β β
β β
βββββββββββββ
| | +-----------+ | Virtual| | Memory
Win| | NTB | -----------> | | | Driver | |
| | | +-----------+ | | |
| | | | | VHOST PCI EP
like yes the ASCII art is fighting for its life π but the vibe is: the Virtual Driver on VHOST reaches through the NTB memory window over to the PCI EP side. that's the outbound window flow, iykyk β¨
π₯ RETURN π₯
Zero for success, or an error code in case of failure. so if you get 0 she ate π and if you get anything else, something went sideways, no hard feelings π
π SEE ALSO π
Kernel file ./drivers/pci/endpoint/functions/pci-epf-vntb.c β that's the source of truth bestie, go read her π
epf_ntb_link_up(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_config_spad_bar_alloc(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)
and that's the page!! π this little gem comes to you from ./drivers/pci/endpoint/functions, dated October 2026 β drink some water, go touch a memory window, ily bye ππ§
π¦ 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