---
name: "nvme_init_manage_export_ns_associate-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_manage_export_ns_associate-libnvme3"
---

# nvme\_init\_manage\_export\_ns\_associate-libnvme3(2)

Initialize passthru command for Manage Exported Namespace - Associate Namespace

## NAME

nvme\_init\_manage\_export\_ns\_associate - Initialize passthru command for Manage Exported Namespace - Associate Namespace

## SYNOPSIS

**void nvme\_init\_manage\_export\_ns\_associate** **(struct libnvme\_passthru\_cmd \*cmd** *,* **\_\_u8 andsf** *,* **bool esubidv** *,* **\_\_u16 esubid** *,* **struct nvme\_associate\_ns\_data \*data** *);*

## ARGUMENTS

- cmd

  Passthru command to use

- andsf

  Associate Namespace Data Structure Format (ANDSF): the bit number in the Exported Namespace Data Structure Formats Supported (ENDSFS) field (Identify Controller data structure) that defines the format of *data*. Bit 1 selects the format defined by *struct nvme\_associate\_ns\_data*.

- esubidv

  Exported NVM Subsystem Identifier Valid (ESUBIDV): if set, *esubid* identifies the target Exported NVM Subsystem; otherwise the target is identified by the ENSNQN field in *data*

- esubid

  Exported NVM Subsystem Identifier (ESUBID), used if *esubidv* is set

- data

  Associate Namespace data buffer, see *struct* *nvme\_associate\_ns\_data*

## DESCRIPTION

Initializes the passthru command buffer for the Manage Exported Namespace command with SEL value NVME\_MANAGE\_EXPORT\_NS\_SEL\_ASSOCIATE.
