ich_pata_cable_detect(9)
β¨ ich_pata_cable_detect(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a lil function from the ata_piix corner of the kernel and honestly? it's giving "short but crucial" energy. let's get into it π
πΈ NAME πΈ
ich_pata_cable_detect β literally just probes the host controller for cable detect info π¦
β¨ SYNOPSIS β¨
int ich_pata_cable_detect (struct ata_port *ap );
π ARGUMENTS π
apβ the port you want the cable detect info for, bestie. that's it, that's the whole argument π«Ά
π DESCRIPTION π
so what it actually does: it reads the 80c cable indicator out of the ATA PCI device's PCI config register. iconic behavior, no cap. π
that register? it's normally set by firmware β aka the BIOS β so you're basically peeking at what the BIOS already decided. iykyk π
LOCKING: None (inherited from caller). so like, the locking vibe check is on whoever called this function, not on us. periodt. π
π¦ SEE ALSO π¦
- Kernel file
./drivers/ata/ata_piix.c piix_pata_prereset(9)piix_set_piomode(9)do_pata_set_dmamode(9)piix_set_dmamode(9)ich_set_dmamode(9)piix_check_450nx_errata(9)piix_init_one(9)
π§ friendly reminder: the ./drivers/ata directory is where all these lil friends live, so go say hi if you're curious π
okay that's the whole page, you ate it up fr fr π₯ mwah π
source/version: ./drivers/ata Β· date: October 2026 β and that's the sign-off bestie, ich_pata_cable_detect(9) out! πβπ
π¦ 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