lib/test_xarray.c
Source file repositories/reference/linux-study-clean/lib/test_xarray.c
File Facts
- System
- Linux kernel
- Corpus path
lib/test_xarray.c- Extension
.c- Size
- 60576 bytes
- Lines
- 2279
- 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/xarray.hlinux/module.h
Detected Declarations
function xa_dumpfunction xa_insert_indexfunction xa_alloc_indexfunction xa_erase_indexfunction check_xa_errfunction check_xas_retryfunction check_xa_loadfunction check_xa_mark_1function check_xa_mark_2function check_xa_mark_3function check_xa_markfunction check_xa_shrinkfunction check_insertfunction check_cmpxchgfunction check_cmpxchg_orderfunction check_reservefunction check_xas_erasefunction xas_for_eachfunction check_multi_store_1function check_multi_store_2function check_multi_store_3function check_multi_storefunction check_xa_multi_store_adv_addfunction check_xa_multi_store_adv_del_entryfunction check_xa_multi_store_adv_deletefunction check_xa_multi_store_advfunction check_multi_store_advancedfunction check_xa_alloc_1function check_xa_alloc_2function xa_for_eachfunction check_xa_alloc_3function check_xa_allocfunction __check_store_iterfunction check_store_iterfunction check_multi_find_1function check_multi_find_2function xas_for_eachfunction check_multi_find_3function check_find_1function check_find_2function xa_for_eachfunction xa_for_eachfunction check_find_3function check_find_4function check_findfunction xa_find_entryfunction check_find_entryfunction check_pause
Annotated Snippet
module_init(xarray_checks);
module_exit(xarray_exit);
MODULE_AUTHOR("Matthew Wilcox <willy@infradead.org>");
MODULE_DESCRIPTION("XArray API test module");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/xarray.h`, `linux/module.h`.
- Detected declarations: `function xa_dump`, `function xa_insert_index`, `function xa_alloc_index`, `function xa_erase_index`, `function check_xa_err`, `function check_xas_retry`, `function check_xa_load`, `function check_xa_mark_1`, `function check_xa_mark_2`, `function check_xa_mark_3`.
- 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.