lib/test_parman.c
Source file repositories/reference/linux-study-clean/lib/test_parman.c
File Facts
- System
- Linux kernel
- Corpus path
lib/test_parman.c- Extension
.c- Size
- 11416 bytes
- Lines
- 396
- 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.
- 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/module.hlinux/slab.hlinux/bitops.hlinux/err.hlinux/prandom.hlinux/parman.h
Detected Declarations
struct test_parman_priostruct test_parman_itemstruct test_parmanfunction test_parman_resizefunction test_parman_movefunction test_parman_rnd_initfunction test_parman_rnd_getfunction test_parman_priority_genfunction test_parman_prios_initfunction test_parman_prios_finifunction test_parman_items_initfunction test_parman_items_finifunction test_parman_destroyfunction test_parman_run_check_budgetsfunction test_parman_runfunction test_parman_check_arrayfunction test_parman_lsortfunction test_parman_initfunction test_parman_exitmodule init test_parman_init
Annotated Snippet
module_init(test_parman_init);
module_exit(test_parman_exit);
MODULE_LICENSE("Dual BSD/GPL");
MODULE_AUTHOR("Jiri Pirko <jiri@mellanox.com>");
MODULE_DESCRIPTION("Test module for parman");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/slab.h`, `linux/bitops.h`, `linux/err.h`, `linux/prandom.h`, `linux/parman.h`.
- Detected declarations: `struct test_parman_prio`, `struct test_parman_item`, `struct test_parman`, `function test_parman_resize`, `function test_parman_move`, `function test_parman_rnd_init`, `function test_parman_rnd_get`, `function test_parman_priority_gen`, `function test_parman_prios_init`, `function test_parman_prios_fini`.
- Atlas domain: Kernel Services / lib.
- Implementation status: integration implementation candidate.
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.