ntb_msi_setup_mws(9)
π ntb_msi_setup_mws(9) π
okay so bestie, welcome to the Kernel API Manual, we're talking about ntb_msi_setup_mws today and honestly it's kind of a big deal β¨
π NAME π
ntb_msi_setup_mws β Initialize the MSI inbound memory windows π¦
β¨ SYNOPSIS β¨
int ntb_msi_setup_mws (struct ntb_dev *ntb );
πΈ ARGUMENTS πΈ
ntbβ the NTB device context, like, the whole vibe of the device you're working with π«Ά
π DESCRIPTION π
So here's the tea β β this function sets up the required inbound memory windows. That's literally its whole job and it ate.
It should be called from a work function after a link up event. Like, that's the moment, that's the cue, do it then π
Over the entire network, this function will reserves the last N inbound memory windows for each peer (where N is the number of peers). yes, "will reserves", we don't edit the lore, we just report it π«‘
β οΈ big one bestie: ntb_msi_init must be called before this function. Not optional, not a suggestion, it's giving prerequisite energy π
π₯ RETURN π₯
Zero on success, otherwise a negative error number. Simple as that, no cap π
π SEE ALSO π
- Kernel file
./drivers/ntb/msi.c ntb_msi_init(9)ntb_msi_clear_mws(9)ntbm_msi_request_threaded_irq(9)ntb_msi_peer_trigger(9)
go read those next, iykyk πβ¨
and that's the whole page, bestie β brought to you from ./drivers/ntb, dated October 2026, from the Kernel API Manual. 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