rvt_map_mr_sg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ rvt_map_mr_sg(9) ✨

okay bestie, so this is a page straight out of the Kernel API Manual β€” the rvt_map_mr_sg entry, to be exact πŸ’…. Let's get into it.


🌸 NAME 🌸

rvt_map_mr_sg β€” map that sg list and set it to the memory region, periodt 🫢


✨ SYNOPSIS ✨

int rvt_map_mr_sg (struct ib_mr *ibmr , struct scatterlist *sg , int
sg_nents , unsigned int *sg_offset );

πŸŽ€ ARGUMENTS πŸŽ€

  • ibmr β€” the memory region. that's the whole point, she's the main character πŸ’–
  • sg β€” the dma mapped scatterlist, aka the list itself
  • sg_nents β€” number of entries in sg (count 'em)
  • sg_offset β€” offset in bytes into sg, so like... where you're starting from πŸ¦‹

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so what she actually does: she overwrites the rvt_mr length with the mr length that ib_sg_to_pages calculated. that's it, that's the whole vibe β€” no cap πŸ”₯


πŸ’œ RETURN πŸ’œ

she returns the number of sg elements mapped to the memory region β€” literally that number, nothing sneaky 🌈


🧚 SEE ALSO 🧚

the whole friend group, in Kernel file ./drivers/infiniband/sw/rdmavt/mr.c:


ngl bestie, nineteen cross-references is a lot of reading, but you got this πŸ™ˆπŸ’ͺ

⭐ that's the page! sourced from ./drivers/infiniband/sw/rdmavt, dated October 2026 β€” mwah, go slay your kernel dev era πŸ‘‘πŸ’…πŸ“

πŸ“¦ where this page comes from