ata_id_major_version(9)
π 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
- 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