---
name: "nvme_dsm"
section: "2"
platform: "linux"
package: "libnvme-dev"
version: "1.13-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nvme_dsm"
---

# nvme\_dsm(2)

Send an nvme data set management command

## NAME

nvme\_dsm - Send an nvme data set management command

## SYNOPSIS

**int nvme\_dsm** **(struct nvme\_dsm\_args \*args** *);*

## ARGUMENTS

- args

  *struct nvme\_dsm\_args* argument structure

## DESCRIPTION

The Dataset Management command is used by the host to indicate attributes for ranges of logical blocks. This includes attributes like frequency that data is read or written, access size, and other information that may be used to optimize performance and reliability, and may be used to deallocate/unmap/trim those logical blocks.

## RETURN

The nvme command status if a response was received (see *enum nvme\_status\_field*) or -1 with errno set otherwise.
