lib/test_vmalloc.c
Source file repositories/reference/linux-study-clean/lib/test_vmalloc.c
File Facts
- System
- Linux kernel
- Corpus path
lib/test_vmalloc.c- Extension
.c- Size
- 13977 bytes
- Lines
- 707
- Domain
- Kernel Services
- Bucket
- lib
- Inferred role
- Kernel Services: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Shared kernel service surface used by multiple subsystems, including helpers, cryptography, virtualization support, and async I/O infrastructure.
- Shared kernel service surface used by multiple subsystems, including helpers, cryptography, virtualization support, and async I/O infrastructure.
- 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/init.hlinux/kernel.hlinux/module.hlinux/vmalloc.hlinux/random.hlinux/kthread.hlinux/moduleparam.hlinux/completion.hlinux/delay.hlinux/mm.hlinux/rcupdate.hlinux/srcu.hlinux/slab.h
Detected Declarations
struct test_kvfree_rcustruct test_case_descstruct test_case_datafunction test_report_one_donefunction random_size_align_alloc_testfunction align_shift_alloc_testfunction fix_align_alloc_testfunction random_size_alloc_testfunction long_busy_list_alloc_testfunction full_fit_alloc_testfunction fix_size_alloc_testfunction no_block_alloc_testfunction pcpu_alloc_testfunction kvfree_rcu_1_arg_vmalloc_testfunction kvfree_rcu_2_arg_vmalloc_testfunction vm_map_ram_testfunction vrealloc_testfunction shuffle_arrayfunction test_funcfunction init_test_configurationfunction do_concurrent_testfunction vmalloc_test_initmodule init vmalloc_test_init
Annotated Snippet
module_init(vmalloc_test_init)
#else
late_initcall(vmalloc_test_init);
#endif
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Uladzislau Rezki");
MODULE_DESCRIPTION("vmalloc test module");
Annotation
- Immediate include surface: `linux/init.h`, `linux/kernel.h`, `linux/module.h`, `linux/vmalloc.h`, `linux/random.h`, `linux/kthread.h`, `linux/moduleparam.h`, `linux/completion.h`.
- Detected declarations: `struct test_kvfree_rcu`, `struct test_case_desc`, `struct test_case_data`, `function test_report_one_done`, `function random_size_align_alloc_test`, `function align_shift_alloc_test`, `function fix_align_alloc_test`, `function random_size_alloc_test`, `function long_busy_list_alloc_test`, `function full_fit_alloc_test`.
- Atlas domain: Kernel Services / lib.
- 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.