drivers/i2c/busses/i2c-opal.c
Source file repositories/reference/linux-study-clean/drivers/i2c/busses/i2c-opal.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/i2c/busses/i2c-opal.c- Extension
.c- Size
- 6679 bytes
- Lines
- 277
- 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.
- 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/device.hlinux/i2c.hlinux/kernel.hlinux/mm.hlinux/module.hlinux/of.hlinux/platform_device.hlinux/slab.hasm/firmware.hasm/opal.h
Detected Declarations
function Copyrightfunction i2c_opal_send_requestfunction i2c_opal_xferfunction i2c_opal_smbus_xferfunction i2c_opal_funcfunction i2c_opal_probefunction i2c_opal_removefunction i2c_opal_initfunction i2c_opal_exitmodule init i2c_opal_init
Annotated Snippet
module_init(i2c_opal_init);
static void __exit i2c_opal_exit(void)
{
return platform_driver_unregister(&i2c_opal_driver);
}
module_exit(i2c_opal_exit);
MODULE_AUTHOR("Neelesh Gupta <neelegup@linux.vnet.ibm.com>");
MODULE_DESCRIPTION("IBM OPAL I2C driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/device.h`, `linux/i2c.h`, `linux/kernel.h`, `linux/mm.h`, `linux/module.h`, `linux/of.h`, `linux/platform_device.h`, `linux/slab.h`.
- Detected declarations: `function Copyright`, `function i2c_opal_send_request`, `function i2c_opal_xfer`, `function i2c_opal_smbus_xfer`, `function i2c_opal_func`, `function i2c_opal_probe`, `function i2c_opal_remove`, `function i2c_opal_init`, `function i2c_opal_exit`, `module init i2c_opal_init`.
- Atlas domain: Driver Families / drivers/i2c.
- 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.