legacy_check_special_cases(9)
π legacy_check_special_cases(9) β NAME π
okay so welcome to the Kernel API Manual, bestie β this page is legacy_check_special_cases(9), and it's literally the ATA special cases moment. π
β¨ SYNOPSIS β¨
the whole signature, character for character, no edits:
void legacy_check_special_cases (struct pci_dev *p , int *primary , int *secondary );
π ARGUMENTS π
pβ the PCI device to check, bestie. π«Άprimaryβ set this if we find an ATA master. πsecondaryβ set this if we find an ATA secondary. π¦
π¦ DESCRIPTION π¦
okay so picture this: a small number of vendors implemented early PCI ATA interfaces on bridge logic, and the ATA interface was not PCI visible at all. iconic chaos, honestly. π
where we have a matching PCI driver, we must skip the relevant device here β no cap. if we don't know about it, then the legacy driver is the right driver anyway. periodt. π
π SEE ALSO π
the lore lives in the kernel file ./drivers/ata/pata_legacy.c, and the squad is: legacy_probe_add(9), legacy_set_mode(9), probe_chip_type(9), legacy_init_one(9), legacy_init(9). go off, bestie. π
that's the whole vibe from ./drivers/ata, dated October 2026, page legacy_check_special_cases(9) β mwah π
π¦ 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