arch/loongarch/mm/maccess.c
Source file repositories/reference/linux-study-clean/arch/loongarch/mm/maccess.c
File Facts
- System
- Linux kernel
- Corpus path
arch/loongarch/mm/maccess.c- Extension
.c- Size
- 275 bytes
- Lines
- 11
- Domain
- Architecture Layer
- Bucket
- arch/loongarch
- 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.
Dependency Surface
linux/uaccess.hlinux/kernel.h
Detected Declarations
function copy_from_kernel_nofault_allowed
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0-only
#include <linux/uaccess.h>
#include <linux/kernel.h>
bool copy_from_kernel_nofault_allowed(const void *unsafe_src, size_t size)
{
/* highest bit set means kernel space */
return (unsigned long)unsafe_src >> (BITS_PER_LONG - 1);
}
Annotation
- Immediate include surface: `linux/uaccess.h`, `linux/kernel.h`.
- Detected declarations: `function copy_from_kernel_nofault_allowed`.
- Atlas domain: Architecture Layer / arch/loongarch.
- 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.