tools/testing/nvdimm/test/ndtest.c
Source file repositories/reference/linux-study-clean/tools/testing/nvdimm/test/ndtest.c
File Facts
- System
- Linux kernel
- Corpus path
tools/testing/nvdimm/test/ndtest.c- Extension
.c- Size
- 22400 bytes
- Lines
- 1004
- Domain
- Support Tooling And Documentation
- Bucket
- tools
- Inferred role
- Support Tooling And Documentation: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- 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/platform_device.hlinux/device.hlinux/module.hlinux/genalloc.hlinux/vmalloc.hlinux/dma-mapping.hlinux/list_sort.hlinux/libnvdimm.hlinux/ndctl.hnd-core.hlinux/printk.hlinux/seq_buf.hlinux/papr_scm.huapi/linux/papr_pdsm.h../watermark.hnfit_test.hndtest.h
Detected Declarations
function ndtest_config_getfunction ndtest_config_setfunction ndtest_get_config_sizefunction ndtest_ctlfunction list_for_each_entryfunction ndtest_release_resourcefunction range_index_showfunction ndtest_create_regionfunction ndtest_init_regionsfunction put_dimmsfunction handle_showfunction fail_cmd_showfunction fail_cmd_storefunction fail_cmd_code_showfunction fail_cmd_code_storefunction phys_id_showfunction vendor_showfunction id_showfunction nvdimm_handle_showfunction subsystem_vendor_showfunction dirty_shutdown_showfunction formats_showfunction format_showfunction format1_showfunction ndtest_nvdimm_attr_visiblefunction flags_showfunction ndtest_dimm_registerfunction ndtest_nvdimm_initfunction compatible_showfunction ndtest_bus_registerfunction ndtest_removefunction ndtest_probefunction ndtest_releasefunction cleanup_devicesfunction ndtest_initfunction ndtest_exitmodule init ndtest_init
Annotated Snippet
module_init(ndtest_init);
module_exit(ndtest_exit);
MODULE_DESCRIPTION("Test non-NFIT devices");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("IBM Corporation");
Annotation
- Immediate include surface: `linux/platform_device.h`, `linux/device.h`, `linux/module.h`, `linux/genalloc.h`, `linux/vmalloc.h`, `linux/dma-mapping.h`, `linux/list_sort.h`, `linux/libnvdimm.h`.
- Detected declarations: `function ndtest_config_get`, `function ndtest_config_set`, `function ndtest_get_config_size`, `function ndtest_ctl`, `function list_for_each_entry`, `function ndtest_release_resource`, `function range_index_show`, `function ndtest_create_region`, `function ndtest_init_regions`, `function put_dimms`.
- Atlas domain: Support Tooling And Documentation / tools.
- 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.