via_cable_detect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so welcome to the Kernel API Manual; today's main character is via_cable_detect(9) and she is lowkey iconic. Let's go. πŸ’…

🌸 NAME

via_cable_detect β€” cable detection, but make it kernel.

✨ SYNOPSIS

int via_cable_detect (struct ata_port *ap );

πŸŽ€ ARGUMENTS

  • ap β€” an ATA port. That's the whole vibe, bestie.

πŸ’– DESCRIPTION

So this function performs cable detection. And actually? For the VIA case, the BIOS already did this for us β€” no cap. We just read the values provided by the BIOS. If you're using an 8235 in a non-PC configuration, you may need to update this code, fr fr. That's not a drill; it's an actual "go look at the code" moment.

Hotplug also impacts on this. Keep that in mind, okay? It's part of the lore, not just background noise.

πŸ”₯ SEE ALSO

Kernel file ./drivers/ata/pata_via.c, plus these icons:


cute sign-off: this page is from ./drivers/ata, dated October 2026, and it's all about via_cable_detect(9). slay. πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from