arch/s390/mm/physaddr.c

Source file repositories/reference/linux-study-clean/arch/s390/mm/physaddr.c

File Facts

System
Linux kernel
Corpus path
arch/s390/mm/physaddr.c
Extension
.c
Size
356 bytes
Lines
16
Domain
Architecture Layer
Bucket
arch/s390
Inferred role
Architecture Layer: exported/initcall integration point
Status
integration 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

// SPDX-License-Identifier: GPL-2.0
#include <linux/mmdebug.h>
#include <linux/export.h>
#include <linux/mm.h>
#include <asm/page.h>

unsigned long __phys_addr(unsigned long x, bool is_31bit)
{
	VIRTUAL_BUG_ON(is_vmalloc_or_module_addr((void *)(x)));
	x = __pa_nodebug(x);
	if (is_31bit)
		VIRTUAL_BUG_ON(x >> 31);
	return x;
}
EXPORT_SYMBOL(__phys_addr);

Annotation

Implementation Notes