---
name: "libnvme_exec_admin_passthru-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_exec_admin_passthru-libnvme3"
---

# libnvme\_exec\_admin\_passthru-libnvme3(2)

Submit an admin passthru command and wait

## NAME

libnvme\_exec\_admin\_passthru - Submit an admin passthru command and wait

## SYNOPSIS

**int libnvme\_exec\_admin\_passthru** **(struct libnvme\_transport\_handle \*hdl** *,* **struct libnvme\_passthru\_cmd \*cmd** *);*

## ARGUMENTS

- hdl

  Transport handle

- cmd

  The nvme admin command to send

## DESCRIPTION

Synchronous command execution.

## RETURN

The nvme command status if a response was received (see *enum nvme\_status\_field*), or negative error code otherwise.
