via_cable_detect(9)
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:
via_do_set_mode(9)via_mode_filter(9)via_tf_load(9)via_config_fifo(9)via_init_one(9)via_reinit_one(9)
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
- 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