kmsan_handle_dma_sg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🫢 kmsan_handle_dma_sg(9) β€” Kernel API Manual 🫢

okay bestie, welcome to kmsan_handle_dma_sg(9) in the Kernel API Manual. this page is literally about handling a DMA transfer using scatterlist, and it's giving short-and-iconic. πŸ’…

🌸 NAME 🌸

kmsan_handle_dma_sg β€” Handle a DMA transfer using scatterlist.

✨ SYNOPSIS ✨

void kmsan_handle_dma_sg (struct scatterlist *sg , int nents , enum dma_data_direction dir );

πŸŽ€ ARGUMENTS πŸŽ€

  • sg β€” scatterlist holding DMA buffers. the buffer holder, periodt.
  • nents β€” number of scatterlist entries.
  • dir β€” one of possible dma_data_direction values.

πŸ’– DESCRIPTION πŸ’–

Depending on direction, KMSAN:

  • checks the buffers in the scatterlist, if they are copied to device;
  • initializes the buffers, if they are copied from device;
  • does both, if this is a DMA_BIDIRECTIONAL transfer.

so it's giving: vibe check for to-device, glow-up init for from-device, and full main-character mode for DMA_BIDIRECTIONAL. πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./include/linux kmsan.h β€” and these besties:

byeee πŸ’– footer vibes: source/version ./include/linux, date October 2026, page kmsan_handle_dma_sg(9). mwah 🫢

πŸ“¦ where this page comes from