lib/test_maple_tree.c
Source file repositories/reference/linux-study-clean/lib/test_maple_tree.c
File Facts
- System
- Linux kernel
- Corpus path
lib/test_maple_tree.c- Extension
.c- Size
- 108673 bytes
- Lines
- 4027
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/maple_tree.hlinux/module.hlinux/rwsem.h
Detected Declarations
function mtree_insert_indexfunction mtree_erase_indexfunction mtree_test_insertfunction mtree_test_store_rangefunction mtree_test_storefunction mtree_test_insert_rangefunction check_mtree_alloc_rangefunction check_mtree_alloc_rrangefunction check_loadfunction check_store_rangefunction check_insert_rangefunction check_insertfunction check_dup_insertfunction check_index_loadfunction not_emptyfunction check_rev_seqfunction check_seqfunction check_lb_not_emptyfunction check_lower_bound_splitfunction check_upper_bound_splitfunction check_mid_splitfunction check_rev_findfunction check_findfunction check_find_2function mas_for_eachfunction mas_for_eachfunction check_alloc_rev_rangefunction check_alloc_rangefunction check_rangesfunction check_next_entryfunction check_prev_entryfunction check_store_nullfunction check_root_expandfunction check_deficient_nodefunction check_gap_combiningfunction check_node_overwritefunction bench_slot_storefunction bench_node_storefunction bench_awalkfunction bench_walkfunction bench_loadfunction bench_mt_for_eachfunction mt_for_eachfunction bench_mas_for_eachfunction mas_for_eachfunction bench_mas_prevfunction check_forkingfunction check_iteration
Annotated Snippet
module_init(maple_tree_seed);
module_exit(maple_tree_harvest);
MODULE_AUTHOR("Liam R. Howlett <liam@infradead.org>");
MODULE_DESCRIPTION("maple tree API test module");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/maple_tree.h`, `linux/module.h`, `linux/rwsem.h`.
- Detected declarations: `function mtree_insert_index`, `function mtree_erase_index`, `function mtree_test_insert`, `function mtree_test_store_range`, `function mtree_test_store`, `function mtree_test_insert_range`, `function check_mtree_alloc_range`, `function check_mtree_alloc_rrange`, `function check_load`, `function check_store_range`.
- 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.