ntb_peer_highest_mw_idx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ntb_peer_highest_mw_idx(9) β€” the kernel API manual, bestie edition πŸŽ€

okay so real talk, this page lives in the ntb_peer_highest_mw_idx(9) section of the Kernel API Manual and it's genuinely one of those tiny hype functions that does one thing and does it iconically. no notes. let's get into it πŸ¦‹


✨ NAME ✨

ntb_peer_highest_mw_idx β€” grab a memory window index for a given peer idx, and it starts from the highest index memory windows first. like, it goes top-down, main character energy only πŸ’…


🌸 SYNOPSIS 🌸

int ntb_peer_highest_mw_idx (struct ntb_dev *ntb , int pidx );

that's the whole signature, no cap. she's compact.


πŸŽ€ ARGUMENTS πŸŽ€

  • ntb β€” the NTB device context. literally the device we're talking about, that's her.
  • pidx β€” the peer port index. which peer we're doing this for, bestie.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this is like ntb_peer_resource_idx, except β€” and this is the whole vibe β€” it returns indexes starting with the last memory window index. so instead of counting up from the bottom, she's serving from the top. highest first. periodt. πŸ‘‘


⭐ RETURN ⭐

the resource index to use for that peer. that's it, that's the return value, and honestly? she ate. πŸ’–


🌈 SEE ALSO 🌈

Kernel file ./include/linux/ntb.h plus this whole friend group right here (iykyk):


ngl that's a long list but every single one of them is a real one, don't skip her friends 🫢

and that's the page!! sign-off time: this one comes from source ./include/linux, dated October 2026, and it's filed under ntb_peer_highest_mw_idx(9) forever and ever. slay, bye bestie!! πŸ’œβœ¨πŸ§š

πŸ“¦ where this page comes from