kernel/scftorture.c
Source file repositories/reference/linux-study-clean/kernel/scftorture.c
File Facts
- System
- Linux kernel
- Corpus path
kernel/scftorture.c- Extension
.c- Size
- 21602 bytes
- Lines
- 702
- Domain
- Core OS
- Bucket
- Scheduler, Processes, Timers, Sync, And Syscalls
- Inferred role
- Core OS: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- 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/atomic.hlinux/bitops.hlinux/completion.hlinux/cpu.hlinux/delay.hlinux/err.hlinux/init.hlinux/interrupt.hlinux/kthread.hlinux/kernel.hlinux/mm.hlinux/module.hlinux/moduleparam.hlinux/notifier.hlinux/percpu.hlinux/rcupdate.hlinux/rcupdate_trace.hlinux/reboot.hlinux/sched.hlinux/spinlock.hlinux/smp.hlinux/stat.hlinux/srcu.hlinux/slab.hlinux/torture.hlinux/types.h
Detected Declarations
struct scf_statisticsstruct scf_selectorstruct scf_checkfunction scf_add_to_free_listfunction scf_cleanup_free_listfunction scf_torture_stats_printfunction scf_torture_statsfunction scf_sel_addfunction scf_sel_dumpfunction scf_handlerfunction scf_handler_1function scftorture_invoke_onefunction scftorture_invokerfunction scftorture_print_module_parmsfunction scf_cleanup_handlerfunction scf_torture_initmodule init scf_torture_init
Annotated Snippet
module_init(scf_torture_init);
module_exit(scf_torture_cleanup);
Annotation
- Immediate include surface: `linux/atomic.h`, `linux/bitops.h`, `linux/completion.h`, `linux/cpu.h`, `linux/delay.h`, `linux/err.h`, `linux/init.h`, `linux/interrupt.h`.
- Detected declarations: `struct scf_statistics`, `struct scf_selector`, `struct scf_check`, `function scf_add_to_free_list`, `function scf_cleanup_free_list`, `function scf_torture_stats_print`, `function scf_torture_stats`, `function scf_sel_add`, `function scf_sel_dump`, `function scf_handler`.
- Atlas domain: Core OS / Scheduler, Processes, Timers, Sync, And Syscalls.
- 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.