libnvme\_wait\_passthru(9) libnvme API manual libnvme\_wait\_passthru(9)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

# [ARGUMENTS](#ARGUMENTS)

[hdl](#hdl)

Transport handle

# [DESCRIPTION](#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](#RETURN)

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

libnvme\_wait\_passthru October 2026

---

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