arch/sparc/kernel/chmc.c
Source file repositories/reference/linux-study-clean/arch/sparc/kernel/chmc.c
File Facts
- System
- Linux kernel
- Corpus path
arch/sparc/kernel/chmc.c- Extension
.c- Size
- 20516 bytes
- Lines
- 865
- Domain
- Architecture Layer
- Bucket
- arch/sparc
- 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/module.hlinux/kernel.hlinux/types.hlinux/slab.hlinux/list.hlinux/string.hlinux/sched.hlinux/smp.hlinux/errno.hlinux/init.hlinux/of.hlinux/of_platform.hlinux/platform_device.hasm/spitfire.hasm/chmctrl.hasm/cpudata.hasm/oplib.hasm/prom.hasm/head.hasm/io.hasm/memctrl.h
Detected Declarations
struct chmc_obp_mapstruct chmc_obp_mem_layoutstruct chmc_bank_infostruct chmcstruct jbusmc_obp_mapstruct jbusmc_obp_mem_layoutstruct jbusmc_dimm_groupstruct jbusmcfunction mc_list_addfunction mc_list_delfunction syndrome_to_qword_codefunction get_pin_and_dimm_strfunction list_for_each_entryfunction jbusmc_print_dimmfunction jbusmc_dimm_group_sizefunction jbusmc_construct_one_dimm_groupfunction jbusmc_construct_dimm_groupsfunction jbusmc_probefunction chmc_bank_matchfunction list_for_each_entryfunction chmc_print_dimmfunction chmc_read_mcregfunction chmc_write_mcregfunction chmc_interpret_one_decode_regfunction chmc_fetch_decode_regsfunction chmc_probefunction us3mc_probefunction chmc_destroyfunction jbusmc_destroyfunction us3mc_removefunction us3mc_platformfunction us3mc_initfunction us3mc_cleanupmodule init us3mc_init
Annotated Snippet
module_init(us3mc_init);
module_exit(us3mc_cleanup);
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/types.h`, `linux/slab.h`, `linux/list.h`, `linux/string.h`, `linux/sched.h`, `linux/smp.h`.
- Detected declarations: `struct chmc_obp_map`, `struct chmc_obp_mem_layout`, `struct chmc_bank_info`, `struct chmc`, `struct jbusmc_obp_map`, `struct jbusmc_obp_mem_layout`, `struct jbusmc_dimm_group`, `struct jbusmc`, `function mc_list_add`, `function mc_list_del`.
- Atlas domain: Architecture Layer / arch/sparc.
- 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.