The Non-Volatile Device Control (ndctl) is a utility for managing the LIBNVDIMM Linux Kernel subsystem. The LIBNVDIMM subsystem defines a kernel device model and control message interface for platform NFIT (NVDIMM Firmware Interface Table). This interface was first defined by the ACPI v6.0 specification. Later versions may enhance or modify this specification. The latest ACPI and UEFI specifications can be found at http://uefi.org/specifications.
The LIBNVDIMM subsystem provides support for three types of NVDIMMs, namely, PMEM, BLK, and NVDIMM devices that can simultaneously support both PMEM and BLK mode access. These three modes of operation are described by the "NVDIMM Firmware Interface Table" (NFIT) in ACPI v6.0 or later. While the LIBNVDIMM implementation is generic and supports pre-NFIT platforms, it was guided by the superset of capabilities need to support this ACPI 6 definition for NVDIMM resources. The bulk of the kernel implementation is in place to handle the case where DPA accessible via PMEM is aliased with DPA accessible via BLK. When that occurs a LABEL is needed to reserve DPA for exclusive access via one mode a time.
Operations supported by the tool include provisioning capacity (namespaces), as well as enumerating/enabling/disabling the devices (DIMMs, regions, namespaces) associated with an NVDIMM bus.
NDCTL Project Homepage: http://pmem.io/ndctl/
LIBNVDIMM Documentation: https://www.kernel.org/doc/Documentation/nvdimm/nvdimm.txt
Latest ACPI & UEFI Specifications: http://uefi.org/specifications
NVDIMM Namespace: http://pmem.io/documents/NVDIMM_Namespace_Spec.pdf
DSM Interface Example: http://pmem.io/documents/NVDIMM_DSM_Interface_Example.pdf
Driver Writer's Guide: http://pmem.io/documents/NVDIMM_Driver_Writers_Guide.pdf
Source Code Repositories