ntb_mw_get_align(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so bestie, you're on the ntb_mw_get_align(9) page from the Kernel API Manual, and the name is literally ntb_mw_get_align β€” get the restriction parameters of inbound memory window. iykyk πŸ’…

✨ SYNOPSIS ✨

here's the exact summoning spell, no cap:

int ntb_mw_get_align (struct ntb_dev *ntb , int pidx , int widx ,
       resource_size_t *addr_align , resource_size_t *size_align ,
       resource_size_t *size_max );

🌸 ARGUMENTS 🌸

  • ntb β€” NTB device context. it's giving main character device energy.
  • pidx β€” Port index of peer device.
  • widx β€” Memory window index.
  • addr_align β€” OUT - the base alignment for translating the memory window.
  • size_align β€” OUT - the size alignment for translating the memory window.
  • size_max β€” OUT - the maximum size of the memory window.

πŸ¦‹ DESCRIPTION πŸ¦‹

This one gets the alignments of an inbound memory window with the index you specified. literally what it says on the tin.

You can give NULL for any output parameter if the value is not needed β€” no pressure, bestie.

The alignment and size parameters may be used for allocation of proper shared memory. that's the tea 🍡.

⚠️ Note: this must only be called when the link is up. do not skip the vibe check on this one, fr fr.

πŸ’– RETURN πŸ’–

It returns zero on success, otherwise a negative error number. slay when it's zero, and when it's not, you get that negative error number 😭.

🌈 SEE ALSO 🌈

Kernel file ./include/linux/ntb.h β€” and then the whole squad, all iconic:


source/version ./include/linux Β· date October 2026 Β· ntb_mw_get_align(9) signing off, mwah πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from