drivers/w1/slaves/w1_ds2433.c
Source file repositories/reference/linux-study-clean/drivers/w1/slaves/w1_ds2433.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/w1/slaves/w1_ds2433.c- Extension
.c- Size
- 9837 bytes
- Lines
- 420
- Domain
- Driver Families
- Bucket
- drivers/w1
- 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/kernel.hlinux/module.hlinux/moduleparam.hlinux/device.hlinux/types.hlinux/delay.hlinux/slab.hlinux/crc16.hlinux/w1.h
Detected Declarations
struct ds2433_configstruct w1_f23_datafunction w1_f23_fix_countfunction w1_f23_refresh_blockfunction eeprom_readfunction w1_f23_writefunction eeprom_writefunction w1_f23_add_slavefunction w1_f23_remove_slavefunction w1_ds2433_initfunction w1_ds2433_exitmodule init w1_ds2433_init
Annotated Snippet
module_init(w1_ds2433_init);
module_exit(w1_ds2433_exit);
MODULE_AUTHOR("Ben Gardner <bgardner@wabtec.com>");
MODULE_AUTHOR("Marc Ferland <marc.ferland@sonatest.com>");
MODULE_DESCRIPTION("w1 family 23/43 driver for DS2433 (4kb) and DS28EC20 (20kb)");
MODULE_LICENSE("GPL");
MODULE_ALIAS("w1-family-" __stringify(W1_EEPROM_DS2433));
MODULE_ALIAS("w1-family-" __stringify(W1_EEPROM_DS28EC20));
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/moduleparam.h`, `linux/device.h`, `linux/types.h`, `linux/delay.h`, `linux/slab.h`, `linux/crc16.h`.
- Detected declarations: `struct ds2433_config`, `struct w1_f23_data`, `function w1_f23_fix_count`, `function w1_f23_refresh_block`, `function eeprom_read`, `function w1_f23_write`, `function eeprom_write`, `function w1_f23_add_slave`, `function w1_f23_remove_slave`, `function w1_ds2433_init`.
- Atlas domain: Driver Families / drivers/w1.
- 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.