ata_dev_power_set_active(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ ata_dev_power_set_active β€” a.k.a. the "wake up bestie, we're going ACTIVE" page

Okay so real quick, this whole thing lives in the Kernel API Manual, and it's genuinely one of the shorter ones, so grab your iced coffee πŸ“ and let's go.


🌸 NAME 🌸

ata_dev_power_set_active β€” sets a device's power mode to active. That's it, that's the whole job. Iconic, honestly.


✨ SYNOPSIS ✨

void ata_dev_power_set_active (struct ata_device *dev );

No return value, no drama. Void. She just does the thing πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the target device 🫢 like, the one you're trying to wake up.

πŸ’– DESCRIPTION πŸ’–

So basically: this issues a VERIFY command to enter, and that's how it makes suuure the device is in the active power mode. ⭐

And here's the part that lowkey slaps: for a spun-down HDD (so, standby or idle power mode, in case you were wondering), the VERIFY command doesn't just bounce back immediately β€” it completes after the disk spins up. So yeah, she waits for the glow-up to finish before she reports back. πŸ¦‹

LOCKING: kernel thread context (may sleep). So do not try this from somewhere that can't sleep, bestie, that's giving undefined chaos 😭

🌈 SEE ALSO 🌈

The main character lives in the kernel file ./drivers/ata/libata-core.c, and her group chat is genuinely massive β€” every single one of these is in it, no skipped members, periodt πŸ‘‘


And that's the whole page, bestie β€” you ate that 🫢✨ This one ships from ./drivers/ata, dated October 2026, and it's filed under ata_dev_power_set_active(9). Go wake some disks up πŸ’œ

πŸ“¦ where this page comes from