nvme_mi_adm...l_media_info(2)

✨ nvme_mi_adm...l_media_info(2) ✨

okay bestie, welcome to the libnvme API manual πŸ’– this is the page for nvme_mi_admin_get_log_rotational_media_info (the filename got squished, don't worry about it, the vibes are immaculate).


🌸 NAME 🌸

nvme_mi_admin_get_log_rotational_media_info β€” Retrieve Rotational Media Information Log πŸŒ€

Like, literally. It goes and gets you the Rotational Media Information Log. That's the whole job. Main character energy tbh πŸ‘‘


🌈 SYNOPSIS 🌈

int nvme_mi_admin_get_log_rotational_media_info (nvme_mi_ctrl_t ctrl ,
__u16 endgid , __u32 len , struct nvme_rotational_media_info_log *log );

yes it's one long line, she's a lil extra but we love her 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • ctrl β€” the Controller you're querying. this is your girl, your target, the one you're asking for the tea πŸ‘€
  • endgid β€” the Endurance Group Identifier. type __u16, so keep it small and cute πŸ’…
  • len β€” the allocated length of the log page. how much room you're giving her to spill πŸ“
  • log β€” user address to store the log page. that's where the results go, a struct nvme_rotational_media_info_log *, so she's got somewhere to land ✨

πŸ”₯ RETURN πŸ”₯

So here's what you get back, no cap:

  • the nvme command status if a response was received (peep enum nvme_status_field for all the deets πŸ‘‘)
  • or -1 with errno set otherwise 😭
fr fr, if you see that -1, go check errno before you spiral. she left clues, bestie πŸ•΅οΈβ€β™€οΈ

πŸ’œ SEE ALSO πŸ’œ

ngl there's no SEE ALSO section on this page, so just go read that enum nvme_status_field and you're set 🌟


mwah πŸ’‹ that's the whole page, every single detail intact, nothing skipped, we ate and left no crumbs. this beauty dropped in July 2026 and it lives in the libnvme API manual, page nvme_mi_admin_get_log_rotationalmedia_info(2)-ish (the footer clipped it, iconic of her honestly). bye bestie, go log some rotational media info πŸ¦‹πŸ’–

πŸ“¦ where this page comes from