arch/powerpc/kernel/sysfs.c
Source file repositories/reference/linux-study-clean/arch/powerpc/kernel/sysfs.c
File Facts
- System
- Linux kernel
- Corpus path
arch/powerpc/kernel/sysfs.c- Extension
.c- Size
- 28997 bytes
- Lines
- 1188
- Domain
- Architecture Layer
- Bucket
- arch/powerpc
- 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/device.hlinux/cpu.hlinux/smp.hlinux/percpu.hlinux/init.hlinux/sched.hlinux/sysfs.hlinux/export.hlinux/nodemask.hlinux/cpumask.hlinux/notifier.hlinux/of.hasm/current.hasm/processor.hasm/cputable.hasm/hvcall.hasm/machdep.hasm/smp.hasm/time.hasm/pmc.hasm/firmware.hasm/idle.hasm/svm.hcacheinfo.hsetup.hasm/paca.hasm/lppaca.h
Detected Declarations
function store_smt_snooze_delayfunction show_smt_snooze_delayfunction setup_smt_snooze_delayfunction read_dscrfunction write_dscrfunction add_write_permission_dev_attrfunction show_dscr_defaultfunction store_dscr_defaultfunction sysfs_create_dscr_defaultfunction get_idle_ticks_bitfunction do_show_pwrmgtcr0function show_pw20_statefunction do_store_pw20_statefunction store_pw20_statefunction show_pw20_wait_timefunction set_pw20_wait_entry_bitfunction store_pw20_wait_timefunction show_altivec_idlefunction do_store_altivec_idlefunction store_altivec_idlefunction show_altivec_idle_wait_timefunction set_altivec_idle_wait_entry_bitfunction store_altivec_idle_wait_timefunction ppc_enable_pmcsfunction show_svmfunction create_svm_filefunction create_svm_filefunction idle_purr_showfunction create_idle_purr_filefunction remove_idle_purr_filefunction read_idle_spurrfunction idle_spurr_showfunction create_idle_spurr_filefunction remove_idle_spurr_filefunction register_cpu_onlinefunction unregister_cpu_onlinefunction arch_cpu_probefunction arch_cpu_releasefunction cpu_add_dev_attrfunction for_each_possible_cpufunction cpu_add_dev_attr_groupfunction for_each_possible_cpufunction cpu_remove_dev_attrfunction for_each_possible_cpufunction cpu_remove_dev_attr_groupfunction for_each_possible_cpufunction sysfs_add_device_to_nodefunction sysfs_remove_device_from_node
Annotated Snippet
subsys_initcall(topology_init);
Annotation
- Immediate include surface: `linux/device.h`, `linux/cpu.h`, `linux/smp.h`, `linux/percpu.h`, `linux/init.h`, `linux/sched.h`, `linux/sysfs.h`, `linux/export.h`.
- Detected declarations: `function store_smt_snooze_delay`, `function show_smt_snooze_delay`, `function setup_smt_snooze_delay`, `function read_dscr`, `function write_dscr`, `function add_write_permission_dev_attr`, `function show_dscr_default`, `function store_dscr_default`, `function sysfs_create_dscr_default`, `function get_idle_ticks_bit`.
- Atlas domain: Architecture Layer / arch/powerpc.
- 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.