arch/arm64/kernel/process.c
Source file repositories/reference/linux-study-clean/arch/arm64/kernel/process.c
File Facts
- System
- Linux kernel
- Corpus path
arch/arm64/kernel/process.c- Extension
.c- Size
- 26506 bytes
- Lines
- 1041
- Domain
- Architecture Layer
- Bucket
- arch/arm64
- 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.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/compat.hlinux/efi.hlinux/elf.hlinux/export.hlinux/sched.hlinux/sched/debug.hlinux/sched/task.hlinux/sched/task_stack.hlinux/kernel.hlinux/mman.hlinux/mm.hlinux/nospec.hlinux/stddef.hlinux/sysctl.hlinux/unistd.hlinux/user.hlinux/delay.hlinux/reboot.hlinux/interrupt.hlinux/init.hlinux/cpumask.hlinux/cpu.hlinux/elfcore.hlinux/pm.hlinux/tick.hlinux/utsname.hlinux/uaccess.hlinux/random.hlinux/hw_breakpoint.hlinux/personality.hlinux/notifier.htrace/events/power.h
Detected Declarations
struct wchan_infofunction arch_cpu_idle_deadfunction smpt_shutdown_nonboot_cpusfunction activityfunction activityfunction machine_restartfunction print_pstatefunction __show_regsfunction show_regsfunction tls_thread_flushfunction flush_tagged_addr_statefunction flush_poefunction flush_gcsfunction copy_thread_gcsfunction flush_gcsfunction flush_threadfunction arch_dup_tlbbatch_maskfunction arch_release_tlbbatch_maskfunction arch_dup_tlbbatch_maskfunction arch_dup_task_structfunction copy_thread_zafunction copy_threadfunction forkfunction tls_preserve_current_statefunction tls_thread_switchfunction ssbs_thread_switchfunction entry_task_switchfunction gcs_preserve_current_statefunction gcs_thread_switchfunction gcs_thread_switchfunction cntkctl_thread_switchfunction do_set_tsc_modefunction permission_overlay_switchfunction __switch_tofunction debug_switch_statefunction get_wchan_cbfunction __get_wchanfunction arch_align_stackfunction compat_elf_check_archfunction setup_new_execfunction set_tagged_addr_ctrlfunction get_tagged_addr_ctrlfunction tagged_addr_initfunction arch_elf_adjust_protfunction get_tsc_modefunction set_tsc_modemodule init tagged_addr_initexport __stack_chk_guard
Annotated Snippet
core_initcall(tagged_addr_init);
#endif /* CONFIG_ARM64_TAGGED_ADDR_ABI */
#ifdef CONFIG_BINFMT_ELF
int arch_elf_adjust_prot(int prot, const struct arch_elf_state *state,
bool has_interp, bool is_interp)
{
/*
* For dynamically linked executables the interpreter is
* responsible for setting PROT_BTI on everything except
* itself.
*/
if (is_interp != has_interp)
return prot;
if (!(state->flags & ARM64_ELF_BTI))
return prot;
if (prot & PROT_EXEC)
prot |= PROT_BTI;
return prot;
}
#endif
int get_tsc_mode(unsigned long adr)
{
unsigned int val;
if (is_compat_task())
return -EINVAL;
if (test_thread_flag(TIF_TSC_SIGSEGV))
val = PR_TSC_SIGSEGV;
else
val = PR_TSC_ENABLE;
return put_user(val, (unsigned int __user *)adr);
}
int set_tsc_mode(unsigned int val)
{
if (is_compat_task())
return -EINVAL;
return do_set_tsc_mode(val);
}
Annotation
- Immediate include surface: `linux/compat.h`, `linux/efi.h`, `linux/elf.h`, `linux/export.h`, `linux/sched.h`, `linux/sched/debug.h`, `linux/sched/task.h`, `linux/sched/task_stack.h`.
- Detected declarations: `struct wchan_info`, `function arch_cpu_idle_dead`, `function smpt_shutdown_nonboot_cpus`, `function activity`, `function activity`, `function machine_restart`, `function print_pstate`, `function __show_regs`, `function show_regs`, `function tls_thread_flush`.
- Atlas domain: Architecture Layer / arch/arm64.
- 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.