libnvme\_get\_directive\_receive\_length(9) libnvme API manual libnvme\_get\_directive\_receive\_length(9)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

# [ARGUMENTS](#ARGUMENTS)

[dtype](#dtype)

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

[doper](#doper)

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

[len](#len)

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

# [RETURN](#RETURN)

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

libnvme\_get\_directive\_receive\_length September 2026

---

Document: libnvme_get_directive_receive_length-libnvme3(2) from nvme-cli 3.1-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
