dmaengine_prep_dma_memset(9)
πΈ dmaengine_prep_dma_memset(9) πΈ
okay bestie, welcome to the Kernel API Manual π this is a kernel-internals page, so grab a lil snack β we're setting up a DMA memset descriptor and it's gonna be iconic.
β¨ NAME β¨
dmaengine_prep_dma_memset β prepare a DMA memset descriptor π
Like, you're prepping it. Not launching it. Promise. It's giving "outfit laid out the night before" energy, not "already at the party" energy π
β¨ SYNOPSIS β¨
struct dma_async_tx_descriptor * dmaengine_prep_dma_memset (struct
dma_chan *chan , dma_addr_t dest , int value , size_t len , unsigned
long flags );
look at her. five args. all business. π«Ά
β¨ ARGUMENTS β¨
chanβ the channel you're using for this descriptor β¨ like, which DMA engine is doing the work, bestie. gotta pick one.destβ the address of the buffer to be set π― this is where the magic lands.valueβ treated as a single byte value that fills the destination buffer π so like... one byte, copied everywhere. that's the whole vibe. don't come in here expecting a 32-bit word, okay? single byte. periodt.lenβ the total size ofdestπ how much of it we're filling.flagsβ DMA engine flags π© the flags, from the DMA engine. them.
β¨ SEE ALSO β¨
the whole friend group π the kernel file ./include/linux/dmaengine.h plus literally everyone in the DMA roster:
dma_cookie_t(9)enum dma_status(9)enum dma_transaction_type(9)enum dma_transfer_direction(9)struct data_chunk(9)struct dma_interleaved_template(9)struct dma_vec(9)enum dma_ctrl_flags(9)enum sum_check_bits(9)enum sum_check_flags(9)enum dma_desc_metadata_mode(9)struct dma_chan_percpu(9)struct dma_router(9)struct dma_chan(9)struct dma_chan_dev(9)enum dma_slave_buswidth(9)struct dma_slave_config(9)enum dma_residue_granularity(9)struct dma_slave_caps(9)dma_filter_fn(9)struct dma_async_tx_descriptor(9)struct dma_tx_state(9)enum dmaengine_alignment(9)struct dma_slave_map(9)struct dma_filter(9)struct dma_device(9)dmaengine_prep_peripheral_dma_vec(9)dmaengine_prep_config_sg_safe(9)dmaengine_prep_config_single_safe(9)dmaengine_terminate_all(9)dmaengine_terminate_async(9)dmaengine_synchronize(9)dmaengine_terminate_sync(9)dma_async_issue_pending(9)dma_async_is_tx_complete(9)dma_async_is_complete(9)
go read them. iykyk πβ¨
ngl bestie, there's no OPTIONS section on this one β she's a straight-up function page, no flags to scroll through. you're welcome π
aaaand that's the page!! π¦ brought to you straight out of ./include/linux, dated October 2026, by your fave Kernel API Manual β no cap, she ate π
ππ
π¦ 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