efar_set_dmamode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… efar_set_dmamode(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ this one's a little function page and it's genuinely iconic in a quiet, behind-the-scenes way β€” think main character energy but for PATA DMA timings πŸŽ€


🌸 NAME 🌸

efar_set_dmamode β€” initialize host controller PATA DMA timings πŸ¦‹

like, that's the whole vibe. it sets up the DMA timing stuff on the host controller. no cap.


✨ SYNOPSIS ✨

void efar_set_dmamode (struct ata_port *ap , struct ata_device *adev );

yes it returns void, so don't go looking for a return value, there isn't one, she simply does her thing and leaves πŸ’…


🫢 ARGUMENTS 🫢

  • ap β€” the port whose timings we're configuring, like this is the port we're giving a little makeover to πŸ’–
  • adev β€” the device to program, aka the one actually getting the glow-up 🌟

πŸ‘‘ DESCRIPTION πŸ‘‘

Set UDMA/MWDMA mode for device, in host controller PCI config space. πŸŽ€ literally that's it, she goes in and sets the UDMA/MWDMA mode for the device, and it happens in the host controller PCI config space. slay.

LOCKING: None (inherited from caller). ⚠️ so she does not do any locking herself, she inherits it from whoever called her β€” if you're the caller, the locking is your problem bestie, don't come for her πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./drivers/ata/pata_efar.c β€” go read it, iykyk πŸ‘€

like the whole friend group fr fr 🫢


⭐ sign-off ⭐

and that's the page!! πŸ¦‹ this little gem lives under ./drivers/ata, and she's dated October 2026 β€” go off, bestie πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from