include/linux/ptdump.h
Source file repositories/reference/linux-study-clean/include/linux/ptdump.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/ptdump.h- Extension
.h- Size
- 1382 bytes
- Lines
- 41
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- 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/mm_types.h
Detected Declarations
struct ptdump_rangestruct ptdump_statefunction debug_checkwx
Annotated Snippet
struct ptdump_range {
unsigned long start;
unsigned long end;
};
struct ptdump_state {
void (*note_page_pte)(struct ptdump_state *st, unsigned long addr, pte_t pte);
void (*note_page_pmd)(struct ptdump_state *st, unsigned long addr, pmd_t pmd);
void (*note_page_pud)(struct ptdump_state *st, unsigned long addr, pud_t pud);
void (*note_page_p4d)(struct ptdump_state *st, unsigned long addr, p4d_t p4d);
void (*note_page_pgd)(struct ptdump_state *st, unsigned long addr, pgd_t pgd);
void (*note_page_flush)(struct ptdump_state *st);
void (*effective_prot_pte)(struct ptdump_state *st, pte_t pte);
void (*effective_prot_pmd)(struct ptdump_state *st, pmd_t pmd);
void (*effective_prot_pud)(struct ptdump_state *st, pud_t pud);
void (*effective_prot_p4d)(struct ptdump_state *st, p4d_t p4d);
void (*effective_prot_pgd)(struct ptdump_state *st, pgd_t pgd);
const struct ptdump_range *range;
};
bool ptdump_walk_pgd_level_core(struct seq_file *m,
struct mm_struct *mm, pgd_t *pgd,
bool checkwx, bool dmesg);
void ptdump_walk_pgd(struct ptdump_state *st, struct mm_struct *mm, pgd_t *pgd);
bool ptdump_check_wx(void);
static inline void debug_checkwx(void)
{
if (IS_ENABLED(CONFIG_DEBUG_WX))
ptdump_check_wx();
}
#endif /* _LINUX_PTDUMP_H */
Annotation
- Immediate include surface: `linux/mm_types.h`.
- Detected declarations: `struct ptdump_range`, `struct ptdump_state`, `function debug_checkwx`.
- Atlas domain: Core OS / Core Kernel Interface.
- 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.