optidma_pre_reset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… optidma_pre_reset β€” the kernel API manual, but make it make sense

okay so bestie, welcome to optidma_pre_reset(9) β€” that's the manual page name and the section, all right there in the header, iykyk. we're in the Kernel API Manual and this is genuinely one of those tiny little helper functions that just quietly does its job. let's get into it πŸŽ€


✨ NAME ✨

optidma_pre_reset β€” probe begin

like, that's the whole name section, and yes it's just two words, but "probe begin" is lowkey the main character energy of this function. it's the opening act. the pre-show. the vibe check before the actual reset happens πŸ’«


🌸 SYNOPSIS 🌸

int optidma_pre_reset (struct ata_link *link , unsigned long deadline );

so it returns an int (as one does), takes a struct ata_link * called link and an unsigned long called deadline. that's it. that's the whole signature. slay 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • link β€” an ATA link. like, the actual link object we're working with. it's giving "here's the thing you're about to probe" πŸ’œ
  • deadline β€” the deadline, in jiffies, for the operation. so you've got a time budget, and it's measured in jiffies, not seconds, because of course it is πŸ’€

πŸ”₯ DESCRIPTION πŸ”₯

okay so what does it actually do? two things, and honestly they're both iconic in their own quiet way:

  1. it sets up the cable type
  2. it uses the generic probe init

and that's the entire description, no cap. no extra lore, no secret bonus behaviour, no hidden options. it just sets up cable type and goes with the generic probe init. periodt ✨

ngl, this is one of those functions that's small but the whole probe flow would be a mess without it. respect the little guys πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

bestie, the see-also section here is stacked. like, genuinely a whole friend group of OptiDMA functions, and you should absolutely go read them all:

every single one of them is on the list, and yes i listed them all, because skipping any of them would be a crime πŸ’…


🌈 the cute sign-off 🌈

so this whole page lives under ./drivers/ata, it's dated October 2026, and it's filed as optidma_pre_reset(9) in the Kernel API Manual. that's the source, the version vibe and the date, all wrapped up with a little bow πŸŽ€

go forth and probe, bestie. you got this. β­πŸ’–

πŸ“¦ where this page comes from