---
name: "nvme_init_directive_recv-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/nvme_init_directive_recv-libnvme3"
---

# nvme\_init\_directive\_recv-libnvme3(2)

Initialize passthru command for Directive Receive

## NAME

nvme\_init\_directive\_recv - Initialize passthru command for Directive Receive

## SYNOPSIS

**void nvme\_init\_directive\_recv** **(struct libnvme\_passthru\_cmd \*cmd** *,* **\_\_u32 nsid** *,* **enum nvme\_directive\_receive\_doper doper** *,* **enum nvme\_directive\_dtype dtype** *,* **\_\_u16 dspec** *,* **void \*data** *,* **\_\_u32 len** *);*

## ARGUMENTS

- cmd

  Passthru command to use

- nsid

  Namespace ID, if applicable

- doper

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

- dtype

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

- dspec

  Directive specific field

- data

  Userspace address of data payload buffer

- len

  Length of data payload in bytes

## DESCRIPTION

Initializes the passthru command buffer for the Directive Receive command.
