rdc_pata_cable_detect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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