drivers/ata/pata_legacy.c
Source file repositories/reference/linux-study-clean/drivers/ata/pata_legacy.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/ata/pata_legacy.c- Extension
.c- Size
- 11428 bytes
- Lines
- 438
- Domain
- Driver Families
- Bucket
- drivers/ata
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/async.hlinux/kernel.hlinux/module.hlinux/pci.hlinux/init.hlinux/blkdev.hlinux/delay.hscsi/scsi_host.hlinux/ata.hlinux/libata.hlinux/platform_device.h
Detected Declarations
struct legacy_datastruct legacy_probestruct legacy_controllerenum controllerfunction legacy_probe_addfunction legacy_set_modefunction ata_for_each_devfunction probe_chip_typefunction legacy_init_onefunction legacy_check_special_casesfunction legacy_initfunction for_each_pci_devfunction legacy_exitmodule init legacy_init
Annotated Snippet
module_init(legacy_init);
module_exit(legacy_exit);
Annotation
- Immediate include surface: `linux/async.h`, `linux/kernel.h`, `linux/module.h`, `linux/pci.h`, `linux/init.h`, `linux/blkdev.h`, `linux/delay.h`, `scsi/scsi_host.h`.
- Detected declarations: `struct legacy_data`, `struct legacy_probe`, `struct legacy_controller`, `enum controller`, `function legacy_probe_add`, `function legacy_set_mode`, `function ata_for_each_dev`, `function probe_chip_type`, `function legacy_init_one`, `function legacy_check_special_cases`.
- Atlas domain: Driver Families / drivers/ata.
- Implementation status: integration implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.