drivers/i2c/busses/i2c-hydra.c
Source file repositories/reference/linux-study-clean/drivers/i2c/busses/i2c-hydra.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/i2c/busses/i2c-hydra.c- Extension
.c- Size
- 3462 bytes
- Lines
- 151
- Domain
- Driver Families
- Bucket
- drivers/i2c
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/module.hlinux/pci.hlinux/types.hlinux/i2c.hlinux/i2c-algo-bit.hlinux/io.hasm/hydra.h
Detected Declarations
function Copyrightfunction pdregrfunction hydra_bit_setsclfunction hydra_bit_setsdafunction hydra_bit_getsclfunction hydra_bit_getsdafunction hydra_probefunction hydra_remove
Annotated Snippet
static struct pci_driver hydra_driver = {
.name = "hydra_smbus",
.id_table = hydra_ids,
.probe = hydra_probe,
.remove = hydra_remove,
};
module_pci_driver(hydra_driver);
MODULE_AUTHOR("Geert Uytterhoeven <geert@linux-m68k.org>");
MODULE_DESCRIPTION("i2c for Apple Hydra Mac I/O");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/pci.h`, `linux/types.h`, `linux/i2c.h`, `linux/i2c-algo-bit.h`, `linux/io.h`, `asm/hydra.h`.
- Detected declarations: `function Copyright`, `function pdregr`, `function hydra_bit_setscl`, `function hydra_bit_setsda`, `function hydra_bit_getscl`, `function hydra_bit_getsda`, `function hydra_probe`, `function hydra_remove`.
- Atlas domain: Driver Families / drivers/i2c.
- Implementation status: pattern 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.