drivers/misc/cs5535-mfgpt.c
Source file repositories/reference/linux-study-clean/drivers/misc/cs5535-mfgpt.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/misc/cs5535-mfgpt.c- Extension
.c- Size
- 10293 bytes
- Lines
- 382
- 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/kernel.hlinux/spinlock.hlinux/interrupt.hlinux/module.hlinux/platform_device.hlinux/cs5535.hlinux/slab.hasm/msr.h
Detected Declarations
struct cs5535_mfgpt_timerfunction cs5535_mfgpt_toggle_eventfunction cs5535_mfgpt_set_irqfunction cs5535_mfgpt_free_timerfunction cs5535_mfgpt_readfunction cs5535_mfgpt_writefunction werefunction soft_resetfunction casesfunction cs5535_mfgpt_probefunction cs5535_mfgpt_initmodule init cs5535_mfgpt_initexport cs5535_mfgpt_toggle_eventexport cs5535_mfgpt_set_irqexport cs5535_mfgpt_alloc_timerexport cs5535_mfgpt_free_timerexport cs5535_mfgpt_readexport cs5535_mfgpt_write
Annotated Snippet
module_init(cs5535_mfgpt_init);
MODULE_AUTHOR("Andres Salomon <dilinger@queued.net>");
MODULE_DESCRIPTION("CS5535/CS5536 MFGPT timer driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:" DRV_NAME);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/spinlock.h`, `linux/interrupt.h`, `linux/module.h`, `linux/platform_device.h`, `linux/cs5535.h`, `linux/slab.h`, `asm/msr.h`.
- Detected declarations: `struct cs5535_mfgpt_timer`, `function cs5535_mfgpt_toggle_event`, `function cs5535_mfgpt_set_irq`, `function cs5535_mfgpt_free_timer`, `function cs5535_mfgpt_read`, `function cs5535_mfgpt_write`, `function were`, `function soft_reset`, `function cases`, `function cs5535_mfgpt_probe`.
- 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.