rdc_pata_cable_detect(9)
π rdc_pata_cable_detect β kernel API manual, bestie edition β¨
Okay so real quick, the page header situation: this is rdc_pata_cable_detect(9) from the Kernel API Manual, and we're about to learn what it does together. Grab a snack, it's short and sweet. π
πΈ NAME πΈ
rdc_pata_cable_detect β literally just probe host controller cable detect info, that's the whole vibe π
β¨ SYNOPSIS β¨
int rdc_pata_cable_detect (struct ata_port *ap );
Look at that signature. Clean. No notes. π
π ARGUMENTS π
apβ the port you want cable detect info for. That's it, that's the argument, she's the main character here π«Ά
π¦ DESCRIPTION π¦
Okay so what actually happens: it reads the 80c cable indicator out of the ATA PCI device's PCI config register. Ngl, that register is normally set by firmware (BIOS) β so firmware did the homework and this function is just checking the answers. π
LOCKING: None. Like, none at all β it's inherited from the caller. So whoever called you already handled the locking situation, bestie. β¨
π₯ SEE ALSO π₯
Kernel file ./drivers/ata/pata_rdc.c, plus the whole friend group:
π cute sign-off π
That's the whole page, no cap. Source path is ./drivers/ata, dated October 2026, and it's the rdc_pata_cable_detect(9) moment of history. Slay, go read the other ones. ππ§
π¦ 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