pdc2026x_check_atapi_dma(9)
π pdc2026x_check_atapi_dma β a Kernel API Manual moment π
okay bestie, so this is pdc2026x_check_atapi_dma(9) from the Kernel API Manual, and honestly? it's giving short king. tiny page, big "no" energy. let's get into it π«Ά
β¨ NAME β¨
pdc2026x_check_atapi_dma β literally just: check whether ATAPI DMA can be supported for this command. that's the whole assignment π
π¦ SYNOPSIS π¦
int pdc2026x_check_atapi_dma (struct ata_queued_cmd *qc );
one function, one pointer, zero drama. we love a clean signature β¨
π ARGUMENTS π
qcβ the metadata associated with the taskfile we're checking. it's the little info bundle that comes with the task, and yes it's astruct ata_queued_cmd *, keep it exactly like that please π
πΈ DESCRIPTION πΈ
so the whole personality of this function is "just say no" β ATAPI DMA is not supported on older Promise controllers. that's it. that's the function. no cap, it's a hard pass π
LOCKING: None (inherited from caller). so like, don't come for this function about locks β it got them from whoever called it. main character energy but make it inherited π
π RETURN π
- returns
0when ATAPI DMA can be used - returns
1otherwise
(and yeah, "otherwise" is doing a lot of heavy lifting here given the whole description above π)
π₯ SEE ALSO π₯
- Kernel file
./drivers/ata/pata_pdc202xx_old.cβ go read it, iykyk pdc202xx_configure_piomode(9)pdc202xx_set_piomode(9)pdc202xx_set_dmamode(9)pdc2026x_bmdma_start(9)pdc2026x_bmdma_stop(9)pdc2026x_dev_config(9)
all the friends in the group chat, go say hi π
reminder bestie: 1 here does not mean success β it means nope, no ATAPI DMA for you. don't get it twisted π
and that's the page!! π straight outta ./drivers/ata, dated October 2026, filed under pdc2026x_check_atapi_dma(9) β mwah, stan a tiny kernel doc, bye 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