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

# nvme\_mi\_admin\_get\_features\_data(2)

Helper function for &nvme\_mi\_admin\_get\_features()

## NAME

nvme\_mi\_admin\_get\_features\_data - Helper function for &nvme\_mi\_admin\_get\_features()

## SYNOPSIS

**int nvme\_mi\_admin\_get\_features\_data** **(nvme\_mi\_ctrl\_t ctrl** *,* **enum nvme\_features\_id fid** *,* **\_\_u32 nsid** *,* **\_\_u32 data\_len** *,* **void \*data** *,* **\_\_u32 \*result** *);*

## ARGUMENTS

- ctrl

  Controller to send command to

- fid

  Feature identifier

- nsid

  Namespace ID, if applicable for *fid*

- data\_len

  Length of feature data, if applicable for *fid*, in bytes

- data

  User address of feature data, if applicable

- result

  The command completion result from CQE dword0

## DESCRIPTION

Helper for optionally features that optionally return data, using the SEL\_CURRENT selector value.

## RETURN

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