drivers/misc/eeprom/at24.c
Source file repositories/reference/linux-study-clean/drivers/misc/eeprom/at24.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/misc/eeprom/at24.c- Extension
.c- Size
- 27118 bytes
- Lines
- 873
- Domain
- Driver Families
- Bucket
- drivers/misc
- 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/acpi.hlinux/bitops.hlinux/capability.hlinux/delay.hlinux/i2c.hlinux/init.hlinux/jiffies.hlinux/kernel.hlinux/mod_devicetable.hlinux/module.hlinux/mutex.hlinux/nvmem-provider.hlinux/pm_runtime.hlinux/property.hlinux/regmap.hlinux/regulator/consumer.hlinux/slab.h
Detected Declarations
struct at24_datastruct at24_chip_datafunction at24_read_post_vaiofunction at24_adjust_read_countfunction at24_regmap_readfunction at24_adjust_write_countfunction at24_regmap_writefunction at24_readfunction at24_writefunction at24_make_dummy_clientfunction at24_get_offset_adjfunction at24_probe_temp_sensorfunction at24_probefunction probefunction at24_removefunction at24_suspendfunction at24_resumefunction at24_initfunction at24_exitmodule init at24_init
Annotated Snippet
module_init(at24_init);
static void __exit at24_exit(void)
{
i2c_del_driver(&at24_driver);
}
module_exit(at24_exit);
MODULE_DESCRIPTION("Driver for most I2C EEPROMs");
MODULE_AUTHOR("David Brownell and Wolfram Sang");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/bitops.h`, `linux/capability.h`, `linux/delay.h`, `linux/i2c.h`, `linux/init.h`, `linux/jiffies.h`, `linux/kernel.h`.
- Detected declarations: `struct at24_data`, `struct at24_chip_data`, `function at24_read_post_vaio`, `function at24_adjust_read_count`, `function at24_regmap_read`, `function at24_adjust_write_count`, `function at24_regmap_write`, `function at24_read`, `function at24_write`, `function at24_make_dummy_client`.
- Atlas domain: Driver Families / drivers/misc.
- 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.