drivers/rtc/rtc-ds3232.c
Source file repositories/reference/linux-study-clean/drivers/rtc/rtc-ds3232.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/rtc/rtc-ds3232.c- Extension
.c- Size
- 17125 bytes
- Lines
- 746
- Domain
- Driver Families
- Bucket
- drivers/rtc
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/kernel.hlinux/module.hlinux/interrupt.hlinux/i2c.hlinux/spi/spi.hlinux/rtc.hlinux/bcd.hlinux/slab.hlinux/regmap.hlinux/hwmon.h
Detected Declarations
struct ds3232function ds3232_check_rtc_statusfunction ds3232_read_timefunction ds3232_set_timefunction ds3232_read_alarmfunction ds3232_set_alarmfunction ds3232_update_alarmfunction ds3232_hwmon_read_tempfunction ds3232_hwmon_is_visiblefunction ds3232_hwmon_readfunction ds3232_hwmon_registerfunction ds3232_alarm_irq_enablefunction ds3232_irqfunction ds3232_nvmem_readfunction ds3232_nvmem_writefunction ds3232_probefunction ds3232_suspendfunction ds3232_resumefunction ds3232_i2c_probefunction ds3232_register_driverfunction ds3232_unregister_driverfunction ds3232_register_driverfunction ds3232_unregister_driverfunction ds3234_register_driverfunction ds3234_unregister_driverfunction ds3234_register_driverfunction ds3234_unregister_driverfunction ds323x_exitmodule init ds323x_init
Annotated Snippet
module_init(ds323x_init)
static void __exit ds323x_exit(void)
{
ds3234_unregister_driver();
ds3232_unregister_driver();
}
module_exit(ds323x_exit)
MODULE_AUTHOR("Srikanth Srinivasan <srikanth.srinivasan@freescale.com>");
MODULE_AUTHOR("Dennis Aberilla <denzzzhome@yahoo.com>");
MODULE_DESCRIPTION("Maxim/Dallas DS3232/DS3234 RTC Driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("spi:ds3234");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/interrupt.h`, `linux/i2c.h`, `linux/spi/spi.h`, `linux/rtc.h`, `linux/bcd.h`, `linux/slab.h`.
- Detected declarations: `struct ds3232`, `function ds3232_check_rtc_status`, `function ds3232_read_time`, `function ds3232_set_time`, `function ds3232_read_alarm`, `function ds3232_set_alarm`, `function ds3232_update_alarm`, `function ds3232_hwmon_read_temp`, `function ds3232_hwmon_is_visible`, `function ds3232_hwmon_read`.
- Atlas domain: Driver Families / drivers/rtc.
- Implementation status: integration implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.