qcom_read_data_dma(9)
π qcom_read_data_dma(9) π
okay so this is a page straight out of the Kernel API Manual, bestie β it's qcom_read_data_dma(9), and no cap, it's literally the "move the data" girlie of the qpic nand world. let's get into it β¨
πΈ NAME πΈ
qcom_read_data_dma β transfer data π«Ά
β¨ SYNOPSIS β¨
int qcom_read_data_dma (struct qcom_nand_controller *nandc , int reg_off
, const u8 *vaddr , int size , unsigned int flags );
likeβ¦ she takes five things and returns an int, that's the whole vibe π
π ARGUMENTS π
nandcβ the qpic nand controller, aka the main character of this whole operation πreg_offβ offset within the controller's data buffer, so you know exactly where we're poking around πvaddrβ virtual address of the buffer we want to write to, that's the destination bestie πsizeβ DMA transaction size in bytes, yes we're counting, precision is hot π₯flagsβ flags to control DMA descriptor preparation, the little knobs that decide how it all goes down ποΈ
π¦ DESCRIPTION π¦
so what does she actually do?? This function prepares a DMA descriptor to transfer data from the controller's internal buffer to the buffer vaddr. that's it, that's the plot π«Άβ¨ it's giving "prep the descriptor, send the data, slay" β the descriptor gets prepared, the transfer is set up controller-internal-buffer β‘οΈ vaddr, periodt π
π SEE ALSO π
kernel file: ./drivers/mtd/nand/qpic_common.c β go read it, iykyk π
and here's the whole friend group, fr fr:
qcom_free_bam_transaction(9)qcom_alloc_bam_transaction(9)qcom_clear_bam_transaction(9)qcom_qpic_bam_dma_done(9)qcom_nandc_dev_to_mem(9)qcom_prepare_bam_async_desc(9)qcom_prep_bam_dma_desc_cmd(9)qcom_prep_bam_dma_desc_data(9)qcom_prep_adm_dma_desc(9)qcom_read_reg_dma(9)qcom_write_reg_dma(9)qcom_write_data_dma(9)qcom_submit_descs(9)qcom_clear_read_regs(9)qcom_nandc_unalloc(9)qcom_nandc_alloc(9)
lowkey a whole squad of qcom functions, and every single one of them is invited to the group chat ππ
okay that's the page!! this gem lives under ./drivers/mtd/nand and it's dated October 2026 β bookmark it, screenshot it, put it on your fridge, 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