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.

Dependency Surface

Detected Declarations

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

Implementation Notes