arch/x86/mm/physaddr.h

Source file repositories/reference/linux-study-clean/arch/x86/mm/physaddr.h

File Facts

System
Linux kernel
Corpus path
arch/x86/mm/physaddr.h
Extension
.h
Size
231 bytes
Lines
12
Domain
Architecture Layer
Bucket
arch/x86
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.

Dependency Surface

Detected Declarations

Annotated Snippet

#include <asm/processor.h>

static inline int phys_addr_valid(resource_size_t addr)
{
#ifdef CONFIG_PHYS_ADDR_T_64BIT
	return !(addr >> boot_cpu_data.x86_phys_bits);
#else
	return 1;
#endif
}

Annotation

Implementation Notes