arch/riscv/kernel/process.c
Source file repositories/reference/linux-study-clean/arch/riscv/kernel/process.c
File Facts
- System
- Linux kernel
- Corpus path
arch/riscv/kernel/process.c- Extension
.c- Size
- 11883 bytes
- Lines
- 447
- Domain
- Architecture Layer
- Bucket
- arch/riscv
- 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.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Touches user memory; correctness depends on fault-safe copying and privilege boundary handling.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/bitfield.hlinux/cpu.hlinux/kernel.hlinux/sched.hlinux/sched/debug.hlinux/sched/task_stack.hlinux/tick.hlinux/ptrace.hlinux/uaccess.hlinux/personality.hlinux/entry-common.hasm/asm-prototypes.hasm/unistd.hasm/processor.hasm/csr.hasm/stacktrace.hasm/string.hasm/switch_to.hasm/thread_info.hasm/cpuidle.hasm/vector.hasm/cpufeature.hasm/exec.hasm/usercfi.hlinux/stackprotector.h
Detected Declarations
function arch_cpu_idlefunction set_unalign_ctlfunction get_unalign_ctlfunction __show_regsfunction show_regsfunction arch_align_stackfunction compat_elf_check_archfunction compat_mode_detectfunction start_threadfunction flush_threadfunction arch_release_task_structfunction arch_dup_task_structfunction ret_from_fork_kernelfunction ret_from_fork_userfunction copy_threadfunction arch_task_cache_initfunction set_tagged_addr_ctrlfunction get_tagged_addr_ctrlfunction try_to_set_pmmfunction tagged_addr_initmodule init tagged_addr_initexport __stack_chk_guard
Annotated Snippet
core_initcall(tagged_addr_init);
#endif /* CONFIG_RISCV_ISA_SUPM */
Annotation
- Immediate include surface: `linux/bitfield.h`, `linux/cpu.h`, `linux/kernel.h`, `linux/sched.h`, `linux/sched/debug.h`, `linux/sched/task_stack.h`, `linux/tick.h`, `linux/ptrace.h`.
- Detected declarations: `function arch_cpu_idle`, `function set_unalign_ctl`, `function get_unalign_ctl`, `function __show_regs`, `function show_regs`, `function arch_align_stack`, `function compat_elf_check_arch`, `function compat_mode_detect`, `function start_thread`, `function flush_thread`.
- Atlas domain: Architecture Layer / arch/riscv.
- Implementation status: integration implementation candidate.
- This snippet crosses the user/kernel memory boundary; validate fault handling and access checks before translating the pattern.
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.