libnvme_mi_..._submit_exit(9)
π libnvme_mi_..._submit_exit(9) β it's giving libnvme API manual energy
okay so bestie, we're in the libnvme API manual today and the star of the show is libnvme_mi_ep_set_submit_exit. yes the header line is doing The Most with those ellipsis dots but she's iconic, we move π
β¨ NAME β¨
libnvme_mi_ep_set_submit_exit β install the MI submit-exit callback π
π¦ SYNOPSIS π¦
void libnvme_mi_ep_set_submit_exit (struct libnvme_mi_ep *ep , void
(*mi_submit_exit)(struct libnvme_mi_ep *ep, __u8 type, const struct
nvme_mi_msg_hdr *hdr, size_t hdr_len, const void *data, size_t data_len,
void *user_data) );
like, look at her. so many parameters. main character energy fr fr π
πΈ ARGUMENTS πΈ
epβ the endpoint you're configuring. that's the one, that's the girl πmi_submit_exitβ the callback that gets invoked after an MI command completes, i.e. after a response has been received and passed basic validation. so it's the "we're so back" moment, not the "it's over" moment.
The function receives the endpoint, message type, header, data, and the user_data pointer returned earlier by the mi_submit_entry callback. iykyk π₯
Implementations typically use this hook for logging, tracing, or freeing per-command state. literally the cleanup crew, the receipts keeper, the note-taker bestie π«Ά
β DESCRIPTION β
Installs a callback invoked when an MI command completes. β¨
This applies to all MI operations through this endpoint β not just one, not just some, all of them, no cap.
Passing NULL removes any previously installed callback. so if you're like "actually bestie we're done here", you just hand her a NULL and she forgets everything π§
lowkey important: NULL is the undo button. it doesn't do something cute, it removes the callback you set up before. don't get it twisted π
π SEE ALSO π
bestie there's no SEE ALSO section in this one, it's a short and sweet little page. we respect her minimalism π
and that's the whole page, diva. written by the libnvme API manual herself, October 2026, and the footer's little tag is libnvme_mi_ep_set_submit_libnvme_mi_..._submit_exit(9) β say that five times fast, I dare you πβ¨
π¦ 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