optidma_pre_reset(9)
π 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:
- it sets up the cable type
- 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:
- the kernel file
./drivers/ata/pata_optidma.cβ that's where all of these live, it's the mothership π§ optidma_unlock(9)optidma_lock(9)optidma_mode_setup(9)optiplus_mode_setup(9)optidma_set_pio_mode(9)optidma_set_dma_mode(9)optiplus_set_pio_mode(9)optiplus_set_dma_mode(9)optidma_make_bits43(9)optidma_set_mode(9)optiplus_with_udma(9)
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
- 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