kernel/locking/test-ww_mutex.c
Source file repositories/reference/linux-study-clean/kernel/locking/test-ww_mutex.c
File Facts
- System
- Linux kernel
- Corpus path
kernel/locking/test-ww_mutex.c- Extension
.c- Size
- 16005 bytes
- Lines
- 778
- 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/kernel.hlinux/completion.hlinux/delay.hlinux/kthread.hlinux/module.hlinux/prandom.hlinux/slab.hlinux/ww_mutex.h
Detected Declarations
struct test_mutexstruct test_abbastruct test_cyclestruct stressstruct reorder_lockfunction test_mutex_workfunction __test_mutexfunction test_mutexfunction test_aafunction test_abba_workfunction test_abbafunction test_cycle_workfunction __test_cyclefunction test_cyclefunction prandom_u32_belowfunction dummy_loadfunction stress_inorder_workfunction stress_reorder_workfunction list_for_each_entryfunction stress_one_workfunction stressfunction run_testsfunction run_test_classesfunction run_tests_storefunction test_ww_mutex_initfunction test_ww_mutex_exitmodule init test_ww_mutex_init
Annotated Snippet
module_init(test_ww_mutex_init);
module_exit(test_ww_mutex_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Intel Corporation");
MODULE_DESCRIPTION("API test facility for ww_mutexes");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/completion.h`, `linux/delay.h`, `linux/kthread.h`, `linux/module.h`, `linux/prandom.h`, `linux/slab.h`, `linux/ww_mutex.h`.
- Detected declarations: `struct test_mutex`, `struct test_abba`, `struct test_cycle`, `struct stress`, `struct reorder_lock`, `function test_mutex_work`, `function __test_mutex`, `function test_mutex`, `function test_aa`, `function test_abba_work`.
- 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.