tools/testing/nvdimm/dax-dev.c
Source file repositories/reference/linux-study-clean/tools/testing/nvdimm/dax-dev.c
File Facts
- System
- Linux kernel
- Corpus path
tools/testing/nvdimm/dax-dev.c- Extension
.c- Size
- 963 bytes
- Lines
- 40
- Domain
- Support Tooling And Documentation
- Bucket
- tools
- Inferred role
- Support Tooling And Documentation: implementation source
- Status
- source 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.
- 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
test/nfit_test.hlinux/mm.h../../../drivers/dax/dax-private.h
Detected Declarations
function Copyright
Annotated Snippet
if (addr + size - 1 <= range->end) {
if (get_nfit_res(addr)) {
struct page *page;
if (dev_dax->region->align > PAGE_SIZE)
return -1;
page = vmalloc_to_page((void *)addr);
return PFN_PHYS(page_to_pfn(page));
}
return addr;
}
break;
}
return -1;
}
Annotation
- Immediate include surface: `test/nfit_test.h`, `linux/mm.h`, `../../../drivers/dax/dax-private.h`.
- Detected declarations: `function Copyright`.
- Atlas domain: Support Tooling And Documentation / tools.
- Implementation status: source 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.