sdma_txadd_kvaddr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sdma_txadd_kvaddr(9) β€” like, the Kernel API Manual page, bestie ✨

okay so real talk, this is a page from the Kernel API Manual and it's about sdma_txadd_kvaddr, which is a whole function that adds a kernel virtual address to an sdma_txreq. it's giving "plumbing but make it lowkey iconic" 🫢


πŸŽ€ NAME πŸŽ€

sdma_txadd_kvaddr β€” adds a kernel virtual address to sdma_txreq. no cap, that's literally the whole job πŸ’…


✨ SYNOPSIS ✨

int sdma_txadd_kvaddr (struct hfi1_devdata *dd , struct sdma_txreq *tx ,
void *kvaddr , u16 len );

🌸 ARGUMENTS 🌸

  • dd β€” the device you're using for mapping πŸ‘‘
  • tx β€” the sdma_txreq that this page is getting added to πŸŽ€
  • kvaddr β€” the kernel virtual address, yes ma'am πŸ¦‹
  • len β€” length in bytes, keep it cute and keep it counted πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

so this one is used to add a descriptor that's referenced by the kvaddr and len you just passed in. that's the vibe 🌈

and the mapping and unmapping of kvaddr and len? automatically handled, bestie. not you having to do it yourself πŸ˜­πŸ‘‘


πŸ”₯ RETURN πŸ”₯

  • 0 β€” success, slay ✨
  • -ENOSPC β€” mapping fail πŸ’€
  • -ENOMEM β€” couldn't extend/coalesce the descriptor array πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ


fr fr that's the whole page, and like, go read the rest of them too 🧚

this one lives in ./drivers/infiniband/hw/hfi1, dated October 2026, and it answers to the name sdma_txadd_kvaddr(9) β€” periodt πŸ’…β­πŸ“
πŸ“¦ where this page comes from