---
name: "libnvme_wait_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_wait_passthru-libnvme3"
---

# libnvme\_wait\_passthru-libnvme3(2)

Wait for all pending passthru completions

## NAME

libnvme\_wait\_passthru - Wait for all pending passthru completions

## SYNOPSIS

**int libnvme\_wait\_passthru** **(struct libnvme\_transport\_handle \*hdl** *);*

## ARGUMENTS

- hdl

  Transport handle

## DESCRIPTION

Drains all pending passthru commands from the async queue. Use this after batching multiple **libnvme\_submit\_admin\_passthru** calls when io\_uring is enabled.

## RETURN

0 on success, or the first non-zero status encountered.
