ata_acpi_on_devcfg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 ata_acpi_on_devcfg(9) 🌸

okay so this is a page from the Kernel API Manual, bestie β€” yes, the Kernel API Manual, we're in the big leagues now πŸ’…


✨ NAME ✨

ata_acpi_on_devcfg β€” the ATA ACPI hook that gets called on device donfiguration πŸŽ€

not me pointing out that the original literally says "donfiguration" β€” that's their typo, not mine, I'm just being faithful to the source 😭

✨ SYNOPSIS ✨

int ata_acpi_on_devcfg (struct ata_device *dev );

✨ ARGUMENTS ✨

  • dev β€” the target ATA device πŸ¦‹ like, the actual device we're doing all this for

✨ DESCRIPTION ✨

so here's the vibe: this function gets called when dev is about to be configured. main character moment incoming πŸ”₯

and listen β€” the IDENTIFY data might have been modified after this hook is run. so don't go assuming it's frozen in time, okay? things change, data changes, we love growth πŸ’–

LOCKING: EH context. that's the rule, no cap 🫢


✨ RETURN ✨

  • a positive number β€” meaning yes babes, the IDENTIFY data needs to be refreshed πŸ”„
  • 0 β€” nope, it's fine, we're good ✨
  • -errno β€” something went wrong 😭 on failure, as usual

✨ SEE ALSO ✨

the kernel file lives at ./drivers/ata/libata-acpi.c β€” that's the home base 🏠

and it comes with a whole friend group, fr fr:


aaaand that's the whole page, bestie 🧚 sign-off time: this one comes from ./drivers/ata, dated October 2026, and it's filed under ata_acpi_on_devcfg(9). slay πŸ’…πŸ’œ

πŸ“¦ where this page comes from