NVME_MI_ADMIN_GET_LOG_SIMPLE(2)

✨ NAME ✨

nvme_mi_admin_get_log_simple β€” the lil helper bestie for Get Log Page that keeps it simple, no NSID drama, no RAE requirements πŸ’…


🌸 SYNOPSIS 🌸

int nvme_mi_admin_get_log_simple (nvme_mi_ctrl_t ctrl , enum
nvme_cmd_get_log_lid lid , __u32 len , void *log );

πŸŽ€ ARGUMENTS πŸŽ€

  • ctrl β€” the Controller you're querying, aka your main character 🫢
  • lid β€” the Log identifier, like which log are we even pulling here
  • len β€” length of the log buffer, so like, how much room we got
  • log β€” pointer for the resulting log data, where the tea gets dropped πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so real quick β€” this function Performs a Get Log Page Admin command for a specific log ID lid, using NVME_NSID_ALL for the namespace identifier, and rae set to false.

that's it. that's the whole vibe. you don't gotta think about namespace IDs, you don't gotta think about rae, it's just handled. lowkey iconic of it ✨


πŸ”₯ RETURN πŸ”₯

It gives you back the nvme command status if a response was received (peep enum nvme_status_field for the deets πŸ‘€) β€” or -1 with errno set otherwise. so like, if you get -1, go check errno, she's trying to tell you something 😭


July 2026 πŸŽ€ libnvme API manual β€” that's the versionage and the date bestie, no cap, fr fr. go forth and get those logs slay πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from