lib/test_objagg.c
Source file repositories/reference/linux-study-clean/lib/test_objagg.c
File Facts
- System
- Linux kernel
- Corpus path
lib/test_objagg.c- Extension
.c- Size
- 25397 bytes
- Lines
- 1037
- 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/random.hlinux/objagg.h
Detected Declarations
struct tokeystruct worldstruct rootstruct deltastruct expect_stats_infostruct expect_statsstruct action_itemstruct hints_caseenum actionenum expect_deltaenum expect_rootfunction key_id_indexfunction world_obj_putfunction delta_checkfunction delta_destroyfunction root_destroyfunction test_nodelta_obj_getfunction memcmpfunction test_nodelta_obj_putfunction check_stats_zerofunction check_stats_nodeltafunction delta_check_dummyfunction delta_destroy_dummyfunction test_nodeltafunction check_expectfunction obj_to_key_idfunction check_expect_stats_numsfunction check_expect_stats_key_idfunction check_expect_stats_neighfunction __check_expect_statsfunction check_expect_statsfunction test_delta_action_itemfunction test_deltafunction __pr_debug_statsfunction pr_debug_statsfunction pr_debug_hints_statsfunction check_expect_hints_statsfunction test_hints_case2function test_hints_casefunction test_hintsfunction test_objagg_initfunction test_objagg_exitmodule init test_objagg_init
Annotated Snippet
module_init(test_objagg_init);
module_exit(test_objagg_exit);
MODULE_LICENSE("Dual BSD/GPL");
MODULE_AUTHOR("Jiri Pirko <jiri@mellanox.com>");
MODULE_DESCRIPTION("Test module for objagg");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/slab.h`, `linux/random.h`, `linux/objagg.h`.
- Detected declarations: `struct tokey`, `struct world`, `struct root`, `struct delta`, `struct expect_stats_info`, `struct expect_stats`, `struct action_item`, `struct hints_case`, `enum action`, `enum expect_delta`.
- 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.