qcom_prep_bam_dma_desc_cmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… qcom_prep_bam_dma_desc_cmd β€” and yes bestie, that's a kernel API manual page, we're in the big leagues now πŸŽ€

okay so picture this: you're deep in the Linux kernel, you're in the NAND directory, and you need a BAM DMA command descriptor prepped. That's literally the whole vibe of this function. Sit down, grab a πŸ“, let's go.


✨ SYNOPSIS ✨

int qcom_prep_bam_dma_desc_cmd (struct qcom_nand_controller *nandc ,
bool read , int reg_off , const void *vaddr , int size , unsigned int
flags );

like look at that signature. it's giving "I have six arguments and I know how to use them" πŸ’…


🫢 ARGUMENTS 🫢

  • nandc β€” the qpic nand controller. your main character struct, the one everything happens to ✨
  • read β€” read or write type. bool, so pick a side bestie, no fence-sitting 😌
  • reg_off β€” offset within the controller's data buffer. it's an int, it's within the buffer, we love a well-behaved offset.
  • vaddr β€” virtual address of the buffer we want to write to. it's const void *, so hands off the contents πŸ”₯
  • size β€” DMA transaction size in bytes. in BYTES. not vibes. bytes πŸ’€
  • flags β€” flags to control DMA descriptor preparation. unsigned int, so bring your whole flag collection πŸŽ€

🌸 DESCRIPTION 🌸

so what does it actually do. This function prepares the command descriptor for BAM DMA β€” the one that gets used for NAND register reads and writes. That's it, that's the whole job, and honestly? iconic. It preps the descriptor so the register reads and writes can do their thing later. no cap, that's the entire description, and we are not going to invent extra lore about it 🧚


πŸ’œ SEE ALSO πŸ’œ

kernel file ./drivers/mtd/nand/qpic_common.c β€” that's the home base, go say hi πŸ‘‘

and then the whole friend group, in order, bestie:


heads up bestie: there's no return-value section and no error list on this page, so I'm not gonna make one up. we keep it factual around here πŸ’…

okay that's the page!! this one lives in ./drivers/mtd/nand, dated October 2026, and it's brought to you by the Kernel API Manual β€” literally the group chat of kernel documentation. go prep those descriptors, ily, bye πŸ¦‹πŸ’–βœ¨

πŸ“¦ where this page comes from