arch/um/kernel/exec.c
Source file repositories/reference/linux-study-clean/arch/um/kernel/exec.c
File Facts
- System
- Linux kernel
- Corpus path
arch/um/kernel/exec.c- Extension
.c- Size
- 870 bytes
- Lines
- 38
- Domain
- Architecture Layer
- Bucket
- arch/um
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/stddef.hlinux/module.hlinux/fs.hlinux/ptrace.hlinux/sched/mm.hlinux/sched/task.hlinux/sched/task_stack.hlinux/slab.hasm/current.hasm/processor.hlinux/uaccess.has-layout.hmem_user.hregisters.hskas.hos.h
Detected Declarations
function Copyrightfunction start_threadexport start_thread
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
*/
#include <linux/stddef.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/ptrace.h>
#include <linux/sched/mm.h>
#include <linux/sched/task.h>
#include <linux/sched/task_stack.h>
#include <linux/slab.h>
#include <asm/current.h>
#include <asm/processor.h>
#include <linux/uaccess.h>
#include <as-layout.h>
#include <mem_user.h>
#include <registers.h>
#include <skas.h>
#include <os.h>
void flush_thread(void)
{
arch_flush_thread(¤t->thread.arch);
get_safe_registers(current_pt_regs()->regs.gp,
current_pt_regs()->regs.fp);
}
void start_thread(struct pt_regs *regs, unsigned long eip, unsigned long esp)
{
PT_REGS_IP(regs) = eip;
PT_REGS_SP(regs) = esp;
clear_thread_flag(TIF_SINGLESTEP);
}
EXPORT_SYMBOL(start_thread);
Annotation
- Immediate include surface: `linux/stddef.h`, `linux/module.h`, `linux/fs.h`, `linux/ptrace.h`, `linux/sched/mm.h`, `linux/sched/task.h`, `linux/sched/task_stack.h`, `linux/slab.h`.
- Detected declarations: `function Copyright`, `function start_thread`, `export start_thread`.
- Atlas domain: Architecture Layer / arch/um.
- Implementation status: integration 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.