mm/hwpoison-inject.c
Source file repositories/reference/linux-study-clean/mm/hwpoison-inject.c
File Facts
- System
- Linux kernel
- Corpus path
mm/hwpoison-inject.c- Extension
.c- Size
- 5175 bytes
- Lines
- 206
- Domain
- Core OS
- Bucket
- Memory Management
- Inferred role
- Core OS: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- 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/module.hlinux/debugfs.hlinux/kernel.hlinux/mm.hlinux/swap.hlinux/pagemap.hlinux/hugetlb.hlinux/page-flags.hlinux/memcontrol.hinternal.h
Detected Declarations
function hwpoison_filter_devfunction hwpoison_filter_flagsfunction hwpoison_filter_taskfunction hwpoison_filter_taskfunction hwpoison_filterfunction hwpoison_injectfunction hwpoison_unpoisonfunction pfn_inject_exitfunction pfn_inject_initmodule init pfn_inject_init
Annotated Snippet
module_init(pfn_inject_init);
module_exit(pfn_inject_exit);
MODULE_DESCRIPTION("HWPoison pages injector");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/debugfs.h`, `linux/kernel.h`, `linux/mm.h`, `linux/swap.h`, `linux/pagemap.h`, `linux/hugetlb.h`, `linux/page-flags.h`.
- Detected declarations: `function hwpoison_filter_dev`, `function hwpoison_filter_flags`, `function hwpoison_filter_task`, `function hwpoison_filter_task`, `function hwpoison_filter`, `function hwpoison_inject`, `function hwpoison_unpoison`, `function pfn_inject_exit`, `function pfn_inject_init`, `module init pfn_inject_init`.
- Atlas domain: Core OS / Memory Management.
- Implementation status: integration 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.