drivers/i2c/busses/scx200_acb.c
Source file repositories/reference/linux-study-clean/drivers/i2c/busses/scx200_acb.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/i2c/busses/scx200_acb.c- Extension
.c- Size
- 13262 bytes
- Lines
- 597
- Domain
- Driver Families
- Bucket
- drivers/i2c
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/errno.hlinux/kernel.hlinux/init.hlinux/i2c.hlinux/pci.hlinux/platform_device.hlinux/delay.hlinux/mutex.hlinux/slab.hlinux/io.hlinux/scx200.h
Detected Declarations
struct scx200_acb_ifaceenum scx200_acb_statefunction scx200_acb_machinefunction scx200_acb_pollfunction scx200_acb_resetfunction scx200_acb_smbus_xferfunction scx200_acb_funcfunction scx200_acb_probefunction scx200_acb_createfunction scx200_probefunction scx200_cleanup_ifacefunction scx200_removefunction scx200_scan_isafunction scx200_acb_initfunction scx200_acb_cleanupmodule init scx200_acb_init
Annotated Snippet
module_init(scx200_acb_init);
module_exit(scx200_acb_cleanup);
Annotation
- Immediate include surface: `linux/module.h`, `linux/errno.h`, `linux/kernel.h`, `linux/init.h`, `linux/i2c.h`, `linux/pci.h`, `linux/platform_device.h`, `linux/delay.h`.
- Detected declarations: `struct scx200_acb_iface`, `enum scx200_acb_state`, `function scx200_acb_machine`, `function scx200_acb_poll`, `function scx200_acb_reset`, `function scx200_acb_smbus_xfer`, `function scx200_acb_func`, `function scx200_acb_probe`, `function scx200_acb_create`, `function scx200_probe`.
- Atlas domain: Driver Families / drivers/i2c.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.