mv_check_atapi_dma(9)
okay so bestie π welcome to the mv_check_atapi_dma(9) page from the Kernel API Manual. This is the ATAPI DMA vibe check, and yes, itβs giving βtiny function, very important filterβ energy β¨.
π NAME π
mv_check_atapi_dma β filter ATAPI cmds which are unsuitable for DMA. Thatβs it, thatβs the job: itβs the bouncer at the DMA club, checking which ATAPI cmds get in and which ones are a hard no π
.
β¨ SYNOPSIS β¨
int mv_check_atapi_dma (struct ata_queued_cmd *qc );
Returns an int and takes a pointer to struct ata_queued_cmd named qc β short, iconic, no notes π«Ά.
π«Ά ARGUMENTS π«Ά
qcβ the queued command to check for chipset/DMA compatibility. Basically, βdoes this queued command match the chipset/DMA setup?β energy β¨.
π DESCRIPTION π
The bmdma engines cannot handle speculative data sizes β thatβs the bytecount under/over flow situation π β so this function only allows DMA for data transfer commands with known data sizes. If the data size is not known, it is not getting the DMA pass, periodt.
LOCKING: Inherited from caller. It does not bring its own lock drama; it inherits the locking from whoever called it π.
π SEE ALSO π
Kernel file ./drivers/ata/sata_mv.c and the whole function crew:
mv_save_cached_regs(9)mv_write_cached_reg(9)mv_stop_edma_engine(9)mv_port_start(9)mv_port_stop(9)mv_fill_sg(9)mv_sff_irq_clear(9)mv_bmdma_setup(9)mv_bmdma_start(9)mv_bmdma_stop_ap(9)mv_bmdma_status(9)mv_qc_prep(9)mv_qc_prep_iie(9)mv_sff_check_status(9)mv_send_fis(9)mv_qc_issue_fis(9)mv_qc_issue(9)mv_err_intr(9)mv_host_intr(9)mv_interrupt(9)mv_port_init(9)mv_init_host(9)mv_platform_probe(9)mv_print_info(9)mv_pci_init_one(9)
Signed off from ./drivers/ata (source/version), dated October 2026 β mv_check_atapi_dma(9) out, bestie πβ¨
π¦ 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