arch/powerpc/mm/mmu_decl.h
Source file repositories/reference/linux-study-clean/arch/powerpc/mm/mmu_decl.h
File Facts
- System
- Linux kernel
- Corpus path
arch/powerpc/mm/mmu_decl.h- Extension
.h- Size
- 5198 bytes
- Lines
- 185
- Domain
- Architecture Layer
- Bucket
- arch/powerpc
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/mm.hasm/mmu.hasm/trace.h
Detected Declarations
struct tlbcamfunction Copyrightfunction _tlbil_pidfunction _tlbil_vafunction _tlbil_vafunction _tlbivax_bcastfunction print_system_hash_infofunction kaslr_early_initfunction v_block_mappedfunction p_block_mappedfunction mmu_mark_initmem_nxfunction mmu_mark_rodata_rofunction debug_pagealloc_enabled_or_kfence
Annotated Snippet
struct tlbcam {
u32 MAS0;
u32 MAS1;
unsigned long MAS2;
u32 MAS3;
u32 MAS7;
};
#define NUM_TLBCAMS 64
extern struct tlbcam TLBCAM[NUM_TLBCAMS];
#endif
#if defined(CONFIG_PPC_BOOK3S_32) || defined(CONFIG_PPC_85xx) || defined(CONFIG_PPC_8xx)
/* 6xx have BATS */
/* PPC_85xx have TLBCAM */
/* 8xx have LTLB */
phys_addr_t v_block_mapped(unsigned long va);
unsigned long p_block_mapped(phys_addr_t pa);
#else
static inline phys_addr_t v_block_mapped(unsigned long va) { return 0; }
static inline unsigned long p_block_mapped(phys_addr_t pa) { return 0; }
#endif
#if defined(CONFIG_PPC_BOOK3S_32) || defined(CONFIG_PPC_8xx) || defined(CONFIG_PPC_E500)
int mmu_mark_initmem_nx(void);
int mmu_mark_rodata_ro(void);
#else
static inline int mmu_mark_initmem_nx(void) { return 0; }
static inline int mmu_mark_rodata_ro(void) { return 0; }
#endif
#ifdef CONFIG_PPC_8xx
void __init mmu_mapin_immr(void);
#endif
static inline bool debug_pagealloc_enabled_or_kfence(void)
{
return IS_ENABLED(CONFIG_KFENCE) || debug_pagealloc_enabled();
}
#ifdef CONFIG_MEMORY_HOTPLUG
int create_section_mapping(unsigned long start, unsigned long end,
int nid, pgprot_t prot);
#endif
int hash__kernel_map_pages(struct page *page, int numpages, int enable);
Annotation
- Immediate include surface: `linux/mm.h`, `asm/mmu.h`, `asm/trace.h`.
- Detected declarations: `struct tlbcam`, `function Copyright`, `function _tlbil_pid`, `function _tlbil_va`, `function _tlbil_va`, `function _tlbivax_bcast`, `function print_system_hash_info`, `function kaslr_early_init`, `function v_block_mapped`, `function p_block_mapped`.
- Atlas domain: Architecture Layer / arch/powerpc.
- 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.