---
name: "libnvme_get_directive_receive_length-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libnvme_get_directive_receive_length-libnvme3"
---

# libnvme\_get\_directive\_receive\_length-libnvme3(2)

Get directive receive length

## NAME

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

## SYNOPSIS

**int libnvme\_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*.
