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

# nvme\_get\_directive\_receive\_length(2)

Get directive receive length

## NAME

nvme\_get\_directive\_receive\_length - Get directive receive length

## SYNOPSIS

**int nvme\_get\_directive\_receive\_length** **(enum nvme\_directive\_dtype dtype** *,* **enum nvme\_directive\_receive\_doper doper** *,* **\_\_u32 \*len** *);*

## ARGUMENTS

- dtype

  Directive type, see *enum nvme\_directive\_dtype*

- doper

  Directive receive operation, see *enum nvme\_directive\_receive\_doper*

- len

  On success, set to this directives payload length in bytes.

## RETURN

0 on success, -1 with errno set to EINVAL if the function did not recognize *dtype* or *doper*.
