ich_set_dmamode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 says um for adev 😭 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:

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