---
name: "libnvme_transport_handle_set_submit_entry-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_transport_handle_set_submit_entry-libnvme3"
---

# libnvme\_transport\_handle\_set\_submit\_entry-libnvme3(2)

Install a submit-entry callback

## NAME

libnvme\_transport\_handle\_set\_submit\_entry - Install a submit-entry callback

## SYNOPSIS

**void libnvme\_transport\_handle\_set\_submit\_entry** **(struct libnvme\_transport\_handle \*hdl** *,* **void \*(\*submit\_entry)(struct libnvme\_transport\_handle \*hdl, struct libnvme\_passthru\_cmd \*cmd)** *);*

## ARGUMENTS

- hdl

  Transport handle to configure

- submit\_entry

  Callback invoked immediately before a passthrough command is submitted. The function receives the command about to be issued and may return an opaque pointer representing per-command context. This pointer is later passed unmodified to the submit-exit callback. Implementations typically use this hook for logging, tracing, or allocating per-command state.

## DESCRIPTION

Installs a user-defined callback that is invoked at the moment a passthrough command enters the NVMe submission path. Passing NULL removes any previously installed callback.

## RETURN

None.
