rdma_for_each_block(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ¦‹


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