drivers/watchdog/diag288_wdt.c
Source file repositories/reference/linux-study-clean/drivers/watchdog/diag288_wdt.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/watchdog/diag288_wdt.c- Extension
.c- Size
- 4563 bytes
- Lines
- 185
- Domain
- Driver Families
- Bucket
- drivers/watchdog
- Inferred role
- Driver Families: implementation source
- Status
- source 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.
- 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/init.hlinux/kernel.hlinux/module.hlinux/moduleparam.hlinux/slab.hlinux/watchdog.hasm/machine.hasm/ebcdic.hasm/diag288.hasm/diag.hlinux/io.h
Detected Declarations
function diag288function diag288_strfunction wdt_startfunction wdt_stopfunction wdt_pingfunction wdt_set_timeoutfunction diag288_initfunction diag288_exit
Annotated Snippet
if (!cmd_buf) {
pr_err("The watchdog cannot be initialized\n");
return -ENOMEM;
}
}
return watchdog_register_device(&wdt_dev);
}
static void __exit diag288_exit(void)
{
watchdog_unregister_device(&wdt_dev);
kfree(cmd_buf);
}
module_cpu_feature_match(S390_CPU_FEATURE_D288, diag288_init);
module_exit(diag288_exit);
Annotation
- Immediate include surface: `linux/init.h`, `linux/kernel.h`, `linux/module.h`, `linux/moduleparam.h`, `linux/slab.h`, `linux/watchdog.h`, `asm/machine.h`, `asm/ebcdic.h`.
- Detected declarations: `function diag288`, `function diag288_str`, `function wdt_start`, `function wdt_stop`, `function wdt_ping`, `function wdt_set_timeout`, `function diag288_init`, `function diag288_exit`.
- Atlas domain: Driver Families / drivers/watchdog.
- Implementation status: source implementation candidate.
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.