kmsan_handle_dma_sg(9)
π«Ά 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 possibledma_data_directionvalues.
π 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_BIDIRECTIONALtransfer.
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:
kmsan_task_create(9)kmsan_task_exit(9)kmsan_init_shadow(9)kmsan_init_runtime(9)kmsan_memblock_free_pages(9)kmsan_alloc_page(9)kmsan_free_page(9)kmsan_copy_page_meta(9)kmsan_slab_alloc(9)kmsan_slab_free(9)kmsan_kmalloc_large(9)kmsan_kfree_large(9)kmsan_ioremap_page_range(9)kmsan_iounmap_page_range(9)kmsan_handle_dma(9)kmsan_handle_urb(9)kmsan_unpoison_entry_regs(9)kmsan_get_metadata(9)kmsan_enable_current(9)kmsan_disable_current(9)memset_no_sanitize_memory(9)
byeee π footer vibes: source/version ./include/linux, date October 2026, page kmsan_handle_dma_sg(9). mwah π«Ά
π¦ 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