arch/s390/kernel/topology.c
Source file repositories/reference/linux-study-clean/arch/s390/kernel/topology.c
File Facts
- System
- Linux kernel
- Corpus path
arch/s390/kernel/topology.c- Extension
.c- Size
- 16373 bytes
- Lines
- 703
- Domain
- Architecture Layer
- Bucket
- arch/s390
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/cpufeature.hlinux/workqueue.hlinux/memblock.hlinux/uaccess.hlinux/sysctl.hlinux/cpuset.hlinux/device.hlinux/export.hlinux/kernel.hlinux/sched.hlinux/sched/topology.hlinux/delay.hlinux/init.hlinux/slab.hlinux/cpu.hlinux/smp.hlinux/mm.hlinux/nodemask.hlinux/node.hasm/hiperdispatch.hasm/sysinfo.hasm/asm.h
Detected Declarations
struct mask_infofunction cpu_group_mapfunction cpu_thread_mapfunction add_cpus_to_maskfunction for_each_set_bitfunction clear_masksfunction tl_to_masksfunction topology_update_polarization_simplefunction ptffunction topology_set_cpu_managementfunction update_cpu_masksfunction for_each_possible_cpufunction store_topologyfunction __arch_update_dedicated_flagfunction __arch_update_cpu_topologyfunction arch_update_cpu_topologyfunction topology_work_fnfunction topology_schedule_updatefunction topology_flush_workfunction topology_timer_fnfunction set_topology_timerfunction topology_expect_changefunction set_polarizationfunction dispatching_showfunction dispatching_storefunction cpu_polarization_showfunction cpu_dedicated_showfunction topology_cpu_initfunction alloc_masksfunction detect_polarizationfunction topology_init_earlyfunction topology_get_modefunction topology_is_enabledfunction topology_setupfunction topology_ctl_handlerfunction polarization_ctl_handlerfunction topology_initmodule init topology_initexport cpu_topology
Annotated Snippet
device_initcall(topology_init);
Annotation
- Immediate include surface: `linux/cpufeature.h`, `linux/workqueue.h`, `linux/memblock.h`, `linux/uaccess.h`, `linux/sysctl.h`, `linux/cpuset.h`, `linux/device.h`, `linux/export.h`.
- Detected declarations: `struct mask_info`, `function cpu_group_map`, `function cpu_thread_map`, `function add_cpus_to_mask`, `function for_each_set_bit`, `function clear_masks`, `function tl_to_masks`, `function topology_update_polarization_simple`, `function ptf`, `function topology_set_cpu_management`.
- Atlas domain: Architecture Layer / arch/s390.
- 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.