sdma_txadd_kvaddr(9)
π 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β thesdma_txreqthat 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 π
- Kernel file
./drivers/infiniband/hw/hfi1/sdma.h sdma exported routines(9)sdma PSM/verbs API(9)Infrastructure calls(9)struct sdma_engine(9)sdma_empty(9)sdma_running(9)sdma_txinit_ahg(9)sdma_txinit(9)sdma_txadd_page(9)sdma_txadd_daddr(9)sdma_progress(9)struct sdma_map_elem(9)sdma_engine_progress_schedule(9)
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 namesdma_txadd_kvaddr(9)β periodt π βπ
π¦ 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