ata_port_classify(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 ata_port_classify(9) β€” a little Kernel API Manual moment ✨

okay bestie, welcome to the ata_port_classify(9) page from the Kernel API Manual πŸ’– this one is short, sweet, and lowkey important, so let's get into it.


πŸ’– NAME πŸ’–

ata_port_classify β€” determine device type based on ATA-spec signature


✨ SYNOPSIS ✨

here's the whole signature, copy it exactly bestie, no cap:

unsigned int ata_port_classify (struct ata_port *ap , const struct ata_taskfile *tf );

πŸŽ€ ARGUMENTS πŸŽ€

  • ap β€” ATA port device on which the classification should be run
  • tf β€” ATA taskfile register set for device to be identified

πŸ¦‹ DESCRIPTION πŸ¦‹

it's literally a wrapper around ata_dev_classify to provide additional logging. that's the whole vibe πŸ’…


🌈 RETURN 🌈

it returns the device type: ATA_DEV_ATA, ATA_DEV_ATAPI, ATA_DEV_PMP, ATA_DEV_ZAC, or ATA_DEV_UNKNOWN in the event of failure 🫢


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./drivers/ata/libata-transport.c


okay that's the whole page πŸ’‹ source/version: ./drivers/ata Β· date: October 2026 Β· page: ata_port_classify(9) β€” mwah, bye bestie! πŸ«ΆπŸ’–

πŸ“¦ where this page comes from