mm/damon/modules-common.h
Source file repositories/reference/linux-study-clean/mm/damon/modules-common.h
File Facts
- System
- Linux kernel
- Corpus path
mm/damon/modules-common.h- Extension
.h- Size
- 1802 bytes
- Lines
- 50
- Domain
- Core OS
- Bucket
- Memory Management
- Inferred role
- Core OS: implementation source
- Status
- source 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/moduleparam.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#include <linux/moduleparam.h>
#define DEFINE_DAMON_MODULES_MON_ATTRS_PARAMS(attrs) \
module_param_named(sample_interval, attrs.sample_interval, \
ulong, 0600); \
module_param_named(aggr_interval, attrs.aggr_interval, ulong, \
0600); \
module_param_named(min_nr_regions, attrs.min_nr_regions, ulong, \
0600); \
module_param_named(max_nr_regions, attrs.max_nr_regions, ulong, \
0600);
#define DEFINE_DAMON_MODULES_DAMOS_TIME_QUOTA(quota) \
module_param_named(quota_ms, quota.ms, ulong, 0600); \
module_param_named(quota_reset_interval_ms, \
quota.reset_interval, ulong, 0600);
#define DEFINE_DAMON_MODULES_DAMOS_QUOTAS(quota) \
DEFINE_DAMON_MODULES_DAMOS_TIME_QUOTA(quota) \
module_param_named(quota_sz, quota.sz, ulong, 0600);
#define DEFINE_DAMON_MODULES_WMARKS_PARAMS(wmarks) \
module_param_named(wmarks_interval, wmarks.interval, ulong, \
0600); \
module_param_named(wmarks_high, wmarks.high, ulong, 0600); \
module_param_named(wmarks_mid, wmarks.mid, ulong, 0600); \
module_param_named(wmarks_low, wmarks.low, ulong, 0600);
#define DEFINE_DAMON_MODULES_DAMOS_STATS_PARAMS(stat, try_name, \
succ_name, qt_exceed_name) \
module_param_named(nr_##try_name, stat.nr_tried, ulong, 0400); \
module_param_named(bytes_##try_name, stat.sz_tried, ulong, \
0400); \
module_param_named(nr_##succ_name, stat.nr_applied, ulong, \
0400); \
module_param_named(bytes_##succ_name, stat.sz_applied, ulong, \
0400); \
module_param_named(nr_##qt_exceed_name, stat.qt_exceeds, ulong, \
0400);
int damon_modules_new_paddr_ctx_target(struct damon_ctx **ctxp,
struct damon_target **targetp);
Annotation
- Immediate include surface: `linux/moduleparam.h`.
- Atlas domain: Core OS / Memory Management.
- 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.