drivers/watchdog/exar_wdt.c
Source file repositories/reference/linux-study-clean/drivers/watchdog/exar_wdt.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/watchdog/exar_wdt.c- Extension
.c- Size
- 9770 bytes
- Lines
- 430
- Domain
- Driver Families
- Bucket
- drivers/watchdog
- 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/io.hlinux/list.hlinux/module.hlinux/platform_device.hlinux/slab.hlinux/watchdog.h
Detected Declarations
struct wdt_pdev_nodestruct wdt_privfunction exar_sio_enterfunction exar_sio_exitfunction exar_sio_readfunction exar_sio_writefunction exar_sio_read16function exar_sio_select_wdtfunction exar_wdt_armfunction exar_wdt_disarmfunction exar_wdt_startfunction exar_wdt_stopfunction exar_wdt_keepalivefunction exar_wdt_set_timeoutfunction exar_wdt_configfunction exar_wdt_probefunction exar_detectfunction exar_wdt_registerfunction exar_wdt_unregisterfunction list_for_each_entry_safefunction exar_wdt_initfunction exar_wdt_exitmodule init exar_wdt_init
Annotated Snippet
module_init(exar_wdt_init);
module_exit(exar_wdt_exit);
MODULE_AUTHOR("David Müller <d.mueller@elsoft.ch>");
MODULE_DESCRIPTION("Exar/MaxLinear Watchdog Driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/io.h`, `linux/list.h`, `linux/module.h`, `linux/platform_device.h`, `linux/slab.h`, `linux/watchdog.h`.
- Detected declarations: `struct wdt_pdev_node`, `struct wdt_priv`, `function exar_sio_enter`, `function exar_sio_exit`, `function exar_sio_read`, `function exar_sio_write`, `function exar_sio_read16`, `function exar_sio_select_wdt`, `function exar_wdt_arm`, `function exar_wdt_disarm`.
- Atlas domain: Driver Families / drivers/watchdog.
- 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.