drivers/w1/slaves/w1_ds250x.c
Source file repositories/reference/linux-study-clean/drivers/w1/slaves/w1_ds250x.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/w1/slaves/w1_ds250x.c- Extension
.c- Size
- 6455 bytes
- Lines
- 292
- 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.hlinux/nvmem-provider.h
Detected Declarations
struct w1_eprom_datafunction w1_ds2502_read_pagefunction w1_ds2505_read_pagefunction w1_nvmem_readfunction w1_eprom_add_slavefunction w1_ds250x_initfunction w1_ds250x_exitmodule init w1_ds250x_init
Annotated Snippet
module_init(w1_ds250x_init);
module_exit(w1_ds250x_exit);
MODULE_AUTHOR("Thomas Bogendoerfer <tbogendoerfe@suse.de>");
MODULE_DESCRIPTION("w1 family driver for DS250x Add Only Memory");
MODULE_LICENSE("GPL");
MODULE_ALIAS("w1-family-" __stringify(W1_DS2502_FAMILY));
MODULE_ALIAS("w1-family-" __stringify(W1_DS2505_FAMILY));
MODULE_ALIAS("w1-family-" __stringify(W1_DS2501_UNW_FAMILY));
MODULE_ALIAS("w1-family-" __stringify(W1_DS2502_UNW_FAMILY));
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 w1_eprom_data`, `function w1_ds2502_read_page`, `function w1_ds2505_read_page`, `function w1_nvmem_read`, `function w1_eprom_add_slave`, `function w1_ds250x_init`, `function w1_ds250x_exit`, `module init w1_ds250x_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.