libnvme_tra...submit_entry(9)
π libnvme_transport_handle_set_submit_entry(9) β¨
okay so bestie, welcome to the libnvme API manual β this one's called libnvme_tra...submit_entry(9) (yes the title's a little truncated, she's shy, it's giving ellipsis energy π«Ά). Let's get into it.
πΈ NAME πΈ
libnvme_transport_handle_set_submit_entry β install a submit-entry callback. literally what it says on the tin π
π 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) );
no cap, that's the whole signature. copy it exactly, don't get cute with the spacing π
π¦ ARGUMENTS π¦
hdlβ the transport handle you're configuring. she's the main character here, you gotta hand her over.submit_entryβ the callback, invoked immediately before a passthrough command is submitted. the function receives the command that's about to be issued and may return an opaque pointer representing per-command context. that pointer is later passed unmodified to the submit-exit callback. implementations typically use this hook for logging, tracing, or allocating per-command state. it's giving very useful, very iconic π
β DESCRIPTION β
so basically: this installs a user-defined callback that gets invoked at the moment a passthrough command enters the NVMe submission path. π₯
and here's the important bit β passing NULL removes any previously installed callback. poof, gone, she's deleted π
π RETURN π
None. that's it. nothing comes back. void queen behavior π
π SEE ALSO π
okay there's no SEE ALSO section in this one bestie, we're keeping it 100 β nothing to cross-reference here π§
π a lil reminder: keep those callback pointers honest and remember NULL is your uninstall button. no take-backs otherwise.
and that's a wrap, bestie! π this icon was brought to you by the libnvme API manual, dated October 2026 β source/version and all π slay, read responsibly, and may your passthrough commands always submit on time β¨π¦π
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms