qcom_prep_bam_dma_desc_data(9)
π qcom_prep_bam_dma_desc_data β the kernel API manual, bestie edition π
okay so this is a page from the Kernel API Manual, and we're talking about qcom_prep_bam_dma_desc_data(9) β yes the (9) is the section, it's giving kernel-internals realness β¨
πΈ NAME πΈ
qcom_prep_bam_dma_desc_data β literally prepares the data descriptor for BAM DMA π
β¨ SYNOPSIS β¨
int qcom_prep_bam_dma_desc_data (struct qcom_nand_controller *nandc ,
bool read , const void *vaddr , int size , unsigned int flags );
it returns an int, and it takes five whole arguments β she's a little high-maintenance but we love her for it π
π«Ά ARGUMENTS π«Ά
nandcβ the qpic nand controller. that's your main character right there πreadβ the read or write type. so like, is this a read or a write, bestie, pick one π¦vaddrβ the virtual address of the buffer we want to write to πsizeβ the DMA transaction size, in bytes. yes, bytes. count them carefully πflagsβ the flags that control DMA descriptor preparation π©
π DESCRIPTION π
so what does she actually do? this function prepares the data descriptor for BAM DMA, which then gets used for NAND data reads and writes. lowkey the whole point of her existence ngl ππ
like, no descriptor, no data transfer β she's the one doing the prep work so the actual reads and writes can slay later π₯
π SEE ALSO π
the kernel file lives right here, in case you wanna go read the source yourself:
./drivers/mtd/nand/qpic_common.c
and here's the whole friend group, all the siblings and cousins πβ¨
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_adm_dma_desc(9)qcom_read_reg_dma(9)qcom_write_reg_dma(9)qcom_read_data_dma(9)qcom_write_data_dma(9)qcom_submit_descs(9)qcom_clear_read_regs(9)qcom_nandc_unalloc(9)qcom_nandc_alloc(9)
ngl go read qpic_common.c too, it's giving "the source is the documentation" energy π
and that's the whole page, bestie π this one lives under ./drivers/mtd/nand, dated October 2026, and it's page qcom_prep_bam_dma_desc_data(9) of the Kernel API Manual β periodt π
πβ¨
π¦ 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