epf_ntb_configure_mw(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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: either 0, 1, 2 or 3. 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 πŸ“–


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