> For the complete documentation index, see [llms.txt](https://docs.pmem.io/ndctl-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pmem.io/ndctl-user-guide/v66/master.md).

# NDCTL User Guide

## Introduction

`ndctl` is a utility for managing the Linux LIBNVDIMM Kernel subsystem. It is designed to work with various non-volatile memory devices (NVDIMMs) from different vendors. The LIBNVDIMM subsystem defines a kernel device model and control message interface for platform NVDIMM resources like those defined by the [ACPI v6.0](http://www.uefi.org/sites/default/files/resources/ACPI_6_0_Errata_A.PDF) NFIT (**N**VDIMM **F**irmware **I**nterface **T**able). The latest [ACPI ](http://www.uefi.org/specifications)and [UEFI ](http://www.uefi.org/specifications)specifications can be found at [uefi.org](http://www.uefi.org). Operations supported by `ndctl` include:

* Provisioning capacity (namespaces)
* Enumerating Devices
* Enabling and Disabling NVDIMMs, Regions, and Namespaces
* Managing NVDIMM Labels

## What's new in v66

This release incorporates functionality up to the 5.3 kernel, and adds a number of bug fixes, and improvements.

Highlights include a new command to reconfigure dax devices to different modes (devdax - default, and system-ram - to hotplug the dax device as system memory), improvements to ndctl-{read,write,init}-labels allowing smaller sized reads/writes, usability fixes to ndctl-monitor, and ndctl-create-namespace, and a fix to ndctl-check-namespace allowing it to be used on systems with different page sizes.

Commands:&#x20;

* [daxctl-reconfigure-device](/ndctl-user-guide/v66/daxctl-man-pages/daxctl-reconfigure-device.md): new command for device mode management&#x20;
* [daxctl-online-memory](/ndctl-user-guide/v66/daxctl-man-pages/untitled-3.md), [daxctl-offline-memory](/ndctl-user-guide/v66/daxctl-man-pages/daxctl-offline-memory.md): new commands for devices in system-ram mode&#x20;
* [monitor](/ndctl-user-guide/v66/ndctl-man-pages/ndctl-monitor.md): logging improvements, allow sending to background&#x20;
* [inject-error](/ndctl-user-guide/v66/ndctl-man-pages/ndctl-inject-error.md): refuse to operate on active BTT namespaces&#x20;
* [read-labels](/ndctl-user-guide/v66/ndctl-man-pages/ndctl-read-labels.md), [write-labels](/ndctl-user-guide/v66/ndctl-man-pages/ndctl-write-labels.md), [zero-labels](/ndctl-user-guide/v66/ndctl-man-pages/ndctl-zero-labels.md): improvements to minimize data transfer&#x20;
* [create-namespace](/ndctl-user-guide/v66/ndctl-man-pages/ndctl-create-namespace.md): usability improvements around region search

APIs:&#x20;

* ndctl\_cmd\_cfg\_read\_set\_extent&#x20;
* ndctl\_cmd\_cfg\_write\_set\_extent&#x20;
* ndctl\_dimm\_read\_label\_extent&#x20;
* ndctl\_dimm\_read\_label\_index&#x20;
* ndctl\_dimm\_zero\_label\_extent&#x20;
* daxctl\_dev\_disable&#x20;
* daxctl\_dev\_enable\_devdax&#x20;
* daxctl\_dev\_enable\_ram&#x20;
* daxctl\_dev\_get\_ctx&#x20;
* daxctl\_dev\_get\_memory
* daxctl\_dev\_get\_resource&#x20;
* daxctl\_dev\_get\_target\_node&#x20;
* daxctl\_dev\_is\_enabled&#x20;
* daxctl\_memory\_get\_block\_size&#x20;
* daxctl\_memory\_get\_dev&#x20;
* daxctl\_memory\_get\_node\_path&#x20;
* daxctl\_memory\_is\_online&#x20;
* daxctl\_memory\_num\_sections&#x20;
* daxctl\_memory\_offline&#x20;
* daxctl\_memory\_online


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pmem.io/ndctl-user-guide/v66/master.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
