nvme_mi_aem_get_enabled(9)

πŸ’– nvme_mi_aem_get_enabled πŸ’–

okay bestie, welcome to the libnvme API manual β€” section 9 energy, kernel-adjacent, lowkey iconic. today's main character is nvme_mi_aem_get_enabled, and no cap, it's literally just here to spill the tea on which AEs are enabled. 🫢


✨ NAME ✨

nvme_mi_aem_get_enabled β€” Return information on which AEs are enabled

like... the whole job. that's it. she tells you which AEs said "yes bestie I'm enabled." 🌸


✨ SYNOPSIS ✨

int nvme_mi_aem_get_enabled (nvme_mi_ep_t ep , struct
       nvme_mi_aem_enabled_map *enabled );

yes she takes two things and returns an int, we love a straightforward queen πŸ’…


✨ ARGUMENTS ✨

  • ep β€” the Endpoint to check enabled status. you're basically asking this endpoint "so... who's enabled rn?" πŸ‘€
  • enabled β€” a nvme_mi_aem_enabled_map, indexed by AE event ID, holding the enabled state. it's giving "spreadsheet but make it a struct" β€” you hand her the map, she fills in the vibes. πŸ¦‹

✨ RETURN ✨

  • 0 is a success β€” slay, we ate, no notes ✨
  • nonzero is an error β€” not the vibe 😭 and errno may be read for further details, so if you're confused, bestie, go read errno, she'll explain everything.
fr fr: check that return value. 0 = good, nonzero = go look at errno. do not skip this step, it's not optional, it's self-care. πŸŽ€

and that's the whole page, bestie β€” short, sweet, and fully enabled. this lil gem came from the libnvme API manual, dated August 2026, and the page itself is nvme_mi_aem_get_enabled(9). mwah, go enable something. πŸ’œπŸ§š

πŸ“¦ where this page comes from