arch/alpha/kernel/setup.c
Source file repositories/reference/linux-study-clean/arch/alpha/kernel/setup.c
File Facts
- System
- Linux kernel
- Corpus path
arch/alpha/kernel/setup.c- Extension
.c- Size
- 35507 bytes
- Lines
- 1374
- Domain
- Architecture Layer
- Bucket
- arch/alpha
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/sched.hlinux/kernel.hlinux/mm.hlinux/stddef.hlinux/unistd.hlinux/ptrace.hlinux/slab.hlinux/user.hlinux/screen_info.hlinux/delay.hlinux/mc146818rtc.hlinux/console.hlinux/cpu.hlinux/errno.hlinux/init.hlinux/string.hlinux/ioport.hlinux/panic_notifier.hlinux/platform_device.hlinux/memblock.hlinux/pci.hlinux/seq_file.hlinux/root_dev.hlinux/initrd.hlinux/eisa.hlinux/pfn.hlinux/sysrq.hlinux/reboot.hlinux/notifier.hasm/setup.hasm/io.hlinux/log2.h
Detected Declarations
function reserve_std_resourcesfunction get_mem_size_limitfunction move_initrdfunction setup_memoryfunction for_each_mem_clusterfunction page_is_ramfunction register_cpusfunction for_each_possible_cpufunction sysrq_reboot_handlerfunction setup_archfunction AS1200function get_sysvecfunction get_sysvec_bynamefunction get_sysnamesfunction platform_stringfunction get_nr_processorsfunction show_cache_sizefunction show_cpuinfofunction read_mem_blockfunction external_cache_probefunction determine_cpu_cachesfunction c_startfunction c_nextfunction c_stopfunction alpha_panic_eventfunction add_pcspkrmodule init add_pcspkrexport hwrpbexport alpha_mvexport alpha_using_srmexport __direct_map_baseexport __direct_map_size
Annotated Snippet
device_initcall(add_pcspkr);
Annotation
- Immediate include surface: `linux/sched.h`, `linux/kernel.h`, `linux/mm.h`, `linux/stddef.h`, `linux/unistd.h`, `linux/ptrace.h`, `linux/slab.h`, `linux/user.h`.
- Detected declarations: `function reserve_std_resources`, `function get_mem_size_limit`, `function move_initrd`, `function setup_memory`, `function for_each_mem_cluster`, `function page_is_ram`, `function register_cpus`, `function for_each_possible_cpu`, `function sysrq_reboot_handler`, `function setup_arch`.
- Atlas domain: Architecture Layer / arch/alpha.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.