ata_id_major_version(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ ata_id_major_version(9) πŸŽ€

okay so this page is from the Kernel API Manual, and it's literally all about getting the ATA level of a drive. bestie, it's giving β€œtiny function, big caveats” energy πŸ’…βœ¨

✨ NAME ✨

ata_id_major_version β€” get ATA level of drive πŸ¦‹

🌸 SYNOPSIS 🌸

unsigned int ata_id_major_version (const u16 *id );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • id β€” Identify data. that's the pointer you hand over, no cap πŸ’–

πŸ’– DESCRIPTION πŸ’–

Okay so the caveats are the main character here, and you gotta know them:

  • ATA-1 considers identify optional
  • ATA-2 introduces mandatory identify
  • ATA-3 introduces word 80 and accurate reporting

The practical impact of this is that ata_id_major_version cannot reliably report on drives below ATA3. like, fr fr, below ATA3 it's not giving reliable info 😭

πŸ”₯ RETURN πŸ”₯

major version of ATA drive level, or 0 if unknown. periodt πŸ’…

🌈 SEE ALSO 🌈

Kernel file ./include/linux/ata.h β€” go read it, iykyk πŸ‘‘


this page comes from ./include/linux, dated October 2026 β€” mwah, slay πŸ«ΆπŸ’‹

πŸ“¦ where this page comes from