lib/test_objpool.c
Source file repositories/reference/linux-study-clean/lib/test_objpool.c
File Facts
- System
- Linux kernel
- Corpus path
lib/test_objpool.c- Extension
.c- Size
- 16337 bytes
- Lines
- 682
- 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/errno.hlinux/module.hlinux/moduleparam.hlinux/completion.hlinux/kthread.hlinux/slab.hlinux/vmalloc.hlinux/delay.hlinux/hrtimer.hlinux/objpool.h
Detected Declarations
struct ot_mem_statstruct ot_obj_statstruct ot_datastruct ot_teststruct ot_itemstruct ot_nodestruct ot_contextfunction ot_kfreefunction ot_mem_reportfunction ot_init_datafunction ot_init_nodefunction ot_hrtimer_handlerfunction ot_start_hrtimerfunction ot_stop_hrtimerfunction ot_init_hrtimerfunction ot_init_cpu_itemfunction ot_thread_workerfunction ot_perf_reportfunction for_each_possible_cpufunction ot_fini_syncfunction ot_bulk_syncfunction ot_start_syncfunction for_each_possible_cpufunction ot_fini_async_rcufunction ot_fini_asyncfunction ot_objpool_releasefunction ot_nod_recyclefunction ot_bulk_asyncfunction ot_start_asyncfunction for_each_possible_cpufunction ot_mod_initfunction ot_mod_exitmodule init ot_mod_init
Annotated Snippet
module_init(ot_mod_init);
module_exit(ot_mod_exit);
MODULE_DESCRIPTION("Test module for lockless object pool");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/errno.h`, `linux/module.h`, `linux/moduleparam.h`, `linux/completion.h`, `linux/kthread.h`, `linux/slab.h`, `linux/vmalloc.h`, `linux/delay.h`.
- Detected declarations: `struct ot_mem_stat`, `struct ot_obj_stat`, `struct ot_data`, `struct ot_test`, `struct ot_item`, `struct ot_node`, `struct ot_context`, `function ot_kfree`, `function ot_mem_report`, `function ot_init_data`.
- 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.