arch/powerpc/include/asm/nohash/32/pte-8xx.h
Source file repositories/reference/linux-study-clean/arch/powerpc/include/asm/nohash/32/pte-8xx.h
File Facts
- System
- Linux kernel
- Corpus path
arch/powerpc/include/asm/nohash/32/pte-8xx.h- Extension
.h- Size
- 7681 bytes
- Lines
- 242
- 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
asm/pgtable-masks.h
Detected Declarations
function protectionfunction pte_readfunction pte_writefunction pte_mkwrite_novmafunction pte_mkhugefunction ptep_set_wrprotectfunction __ptep_set_access_flagsfunction __pte_leaf_sizefunction ptep_is_8m_pmdpfunction number_of_cells_per_ptefunction __pte_updatefunction pte_updatefunction ptep_get
Annotated Snippet
if (IS_ENABLED(CONFIG_PPC_16K_PAGES)) {
*entry++ = new;
*entry++ = new;
*entry++ = new;
}
}
return old;
}
static inline pte_basic_t pte_update(struct mm_struct *mm, unsigned long addr, pte_t *ptep,
unsigned long clr, unsigned long set, int huge)
{
pte_basic_t old;
if (huge && ptep_is_8m_pmdp(mm, addr, ptep)) {
pmd_t *pmdp = (pmd_t *)ptep;
old = __pte_update(mm, addr, pte_offset_kernel(pmdp, 0), clr, set, huge);
__pte_update(mm, addr, pte_offset_kernel(pmdp + 1, 0), clr, set, huge);
} else {
old = __pte_update(mm, addr, ptep, clr, set, huge);
}
return old;
}
#define pte_update pte_update
#ifdef CONFIG_PPC_16K_PAGES
#define ptep_get ptep_get
static inline pte_t ptep_get(pte_t *ptep)
{
pte_basic_t val = READ_ONCE(ptep->pte);
pte_t pte = {val, val, val, val};
return pte;
}
#endif /* CONFIG_PPC_16K_PAGES */
#endif
#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_NOHASH_32_PTE_8xx_H */
Annotation
- Immediate include surface: `asm/pgtable-masks.h`.
- Detected declarations: `function protection`, `function pte_read`, `function pte_write`, `function pte_mkwrite_novma`, `function pte_mkhuge`, `function ptep_set_wrprotect`, `function __ptep_set_access_flags`, `function __pte_leaf_size`, `function ptep_is_8m_pmdp`, `function number_of_cells_per_pte`.
- 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.