ich_set_dmamode(9)
β¨ NAME β¨
ich_set_dmamode β initialize host controller PATA DMA timings π
(also hi, this page lives in the Kernel API Manual π«Ά)
πΈ SYNOPSIS πΈ
void ich_set_dmamode (struct ata_port *ap , struct ata_device *adev );
ok so it returns nothing (void, iconic, no notes) and it takes these two:
π ARGUMENTS π
apβ the port whose timings we're configuring. like, this is the port we're doing a little makeover on πadevβum
ngl bestie the original manpage literally just saysumforadevπ i'm not making that up and i'm not gonna invent a meaning for it either. that's what it says.um. we respect the source text in this house π«‘
π¦ DESCRIPTION π¦
It sets the MW/UDMA mode for the device β and it does that in the host controller PCI config space β¨ so yes, it's poking the actual hardware config registers, main character energy fr fr.
LOCKING: None (inherited from caller).
π¨ read that again: locking is inherited from the caller. this function does zero locking of its own, so whatever lock situation you had going in is the one you've got. it is not out here protecting you. you gotta bring your own. no cap π
π₯ SEE ALSO π₯
Kernel file ./drivers/ata/ata_piix.c, plus these besties who are all in the same friend group:
ich_pata_cable_detect(9)piix_pata_prereset(9)piix_set_piomode(9)do_pata_set_dmamode(9)piix_set_dmamode(9)piix_check_450nx_errata(9)piix_init_one(9)
iykyk β that's the whole ata_piix squad π§
ok that's the page!! huge shoutout to the source ./drivers/ata and this whole thing is dated October 2026 β ich_set_dmamode(9), that's a wrap, slay, 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