nvme_mi_admin_get_nsid_log(2)

πŸ’– NAME πŸ’–

nvme_mi_admin_get_nsid_log β€” ok bestie, this one's a helper for the Get Log Page functions ✨


🌸 SYNOPSIS 🌸

int nvme_mi_admin_get_nsid_log (nvme_mi_ctrl_t ctrl , bool rae , enum
nvme_cmd_get_log_lid lid , __u32 nsid , __u32 len , void *log );

Like. Six arguments. She's thorough, she's got range, she ate πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • ctrl β€” the Controller you're querying 🫢 that's your main character right there
  • rae β€” Retain Asynchronous Events (yes, literally just that, no further explanation given, iykyk)
  • lid β€” the Log identifier, aka which log we're pulling πŸ‘‘
  • nsid β€” the Namespace ID πŸ¦‹
  • len β€” length of the log buffer, so, how much room we're giving her πŸ“
  • log β€” pointer for the resulting log data, this is where the goods land 🌈

πŸ’œ DESCRIPTION πŸ’œ

So what she does is: she performs a Get Log Page Admin command, specifically for a log ID lid and a namespace ID nsid ✨

The log data is expected to be len bytes long, and on success it gets stored in log. That's the deal, no cap πŸ’–

And the rae flag? It gets passed as-is straight to the Get Log Page command, periodt. It's specific to the Log Page you requested, so it's not her job to interpret it β€” she just hands it over πŸ™ˆ


⭐ RETURN ⭐

She gives you the nvme command status if a response was received (peep enum nvme_status_field for the deets), or -1 with errno set otherwise 😭


ngl bestie, if you get a -1 back, go check errno β€” that's where the tea is πŸ“

k byeeee, this was the libnvme API manual page for nvme_mi_admin_get_nsid_log, section 2 of the manuals, dated July 2026 πŸŽ€βœ¨ slay responsibly, go read your logs πŸ’…πŸ’–

πŸ“¦ where this page comes from