NVME_INIT_GET_LOG_PERSISTENT_EVENT-LIBNVME3(2)

πŸ“¦ version 3.2, in arch rolling

πŸ’– nvme_init_get_log_persistent_event ✨

okay bestie, so this one lives in the libnvme API manual, section 9, and it's genuinely one of the most lowkey-but-important little helpers in the whole passthru game. no cap. it's the glow-up ritual you do to your command buffer before you go ask the controller for its whole entire diary. πŸ¦‹


✨ NAME ✨

nvme_init_get_log_persistent_event β€” Initialize passthru command for Persistent Event Log πŸŽ€

like, that's literally her job. that's the whole vibe.


🌸 SYNOPSIS 🌸

void nvme_init_get_log_persistent_event (struct libnvme_passthru_cmd
*cmd , enum nvme_pevent_log_action action , void *pevent_log , __u32 len
);

she returns void β€” no receipts, no error codes, she just does the thing and hands you back a fully prepped command. main character energy fr fr. πŸ’…


⭐ ARGUMENTS ⭐

  • cmd β€” the passthru command you're gonna use. this is the blank canvas, the little outfit you're dressing up. she fills it in for you. πŸ‘‘
  • action β€” type is enum nvme_pevent_log_action, and it's the action the controller should take during processing this command. so, like, what the controller should do while it's chewing on your request. yes ma'am. 🫢
  • pevent_log β€” the user address where you want the persistent event log stored. this is the destination, the drop-off point, the little mailbox you're handing over. πŸ“¬
  • len β€” the size of pevent_log, typed __u32. the controller needs to know how much room it has before it starts yeeting bytes at your pointer. sized correctly, bestie, please. πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

so what she actually does: she initializes the passthru command buffer for the Get Log command, and she sets the LID value to NVME_LOG_PERSISTENT_EVENT. that's it, that's the whole flex. πŸ’€

like β€” you hand her a cmd, she makes it that command. Get Log, LID = NVME_LOG_PERSISTENT_EVENT. no guessing, no extra steps, no drama. iconic behaviour honestly. ✨

little reminder bestie: she only preps the buffer β€” the actual "go do it" moment is on you. 🧚

πŸ‘‘ SEE ALSO πŸ‘‘

nope β€” this page doesn't point you anywhere else. she stands alone. independent queen. 🌈


and that's the tea πŸ’œ β€” this page is from the libnvme API manual, dated October 2026, and it's brought to you by the libnvme girlies. mwah. πŸ“πŸŽ€πŸ’…

πŸ“¦ where this page comes from