rdma_for_each_block(9)
π rdma_for_each_block(9) π
okay bestie, weβre in the Kernel API Manual and this page is all about that loop life: rdma_for_each_block is here to iterate over contiguous memory blocks of the sg list. no cap, itβs giving βwalk the sg list, block by blockβ energy π
πΈ NAME πΈ
rdma_for_each_block β iterate over contiguous memory blocks of the sg list.
β¨ SYNOPSIS β¨
the signature, exactly as itβs written:
rdma_for_each_block (sglist , biter , nents , pgsz );
π ARGUMENTS π
sglistβ the sglist youβre iterating over, bestie.biterβ the block iterator holding the memory block.nentsβ the maximum number of sg entries to iterate over. itβs the cap, periodt.pgszβ the best HW supported page size to use. yes, HW, as in hardware π«Ά
π DESCRIPTION π
callers may use rdma_block_iter_dma_address to get each blockβs aligned DMA address. thatβs the note, and itβs honestly iconic for anyone who needs that DMA-address moment β¨
π¦ SEE ALSO π¦
- Kernel file
./include/rdma/iter.h rdma_block_iter_dma_address(9)rdma_umem_for_each_dma_block(9)
mwah π this page is rdma_for_each_block(9), from ./include/rdma, dated October 2026. go be iconic with your sg list π«Άβ¨
π¦ 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