libnvme(9)

πŸ’– libnvme β€” struct nvme_mi_aem_occ_data πŸ’–

okay bestie, so this is a page straight out of the libnvme API Manual, and we're talking about one little struct that does a big job. sit down, grab a strawberry πŸ“, and let's get into it.


🌸 NAME 🌸

struct nvme_mi_aem_occ_data β€” AEM Message definition. yes that's the whole vibe. one struct. iconic behavior.


✨ SYNOPSIS ✨

here's the literal shape of it, no cap:

struct nvme_mi_aem_occ_data {
    __u8 aelhlen;
    __u8 aeosil;
    __u8 aeovsil;
    struct {
      __u8 aeoi;
      __le32 aeocidi;
      __u8 aessi;
    } aeoui;
 };

look at her. nested struct and everything. main character energy fr fr πŸ‘‘


πŸŽ€ Members πŸŽ€

  • aelhlen β€” the AE Occurrence Header Length. literally how long the header part is.
  • aeosil β€” the AE Occurrence Specific Info Length. tells you how much occurrence-specific info is riding along.
  • aeovsil β€” the AE Occurrence Vendor Specific Info Length. same energy, but for the vendor-specific info.
  • aeoui β€” the AE Occurrence Unique ID, and the way that it's lowkey made up of other subfields?? yeah. it's a little squad of its own.

πŸ¦‹ Description πŸ¦‹

so this struct is one single entry of AE occurrence data, and it comes attached to an nvme_aem_msg. cute, right?

and here's the part you gotta know: right after this structure comes the variable length AEOSI (occurrence specific info) and the variable length AEVSI (vendor specific info). the length of AEOSI is specified by aeosil, and the length of AEVSI is specified by AEVSI.

πŸ’€ heads up: neither field is mandatory, and they shall be omitted if their length parameter is set to zero. so if the length is zero, the field is just... not there. bye bestie πŸ‘‹

🌈 SEE ALSO 🌈

nothing extra on this one, bestie β€” this page keeps it tight. (iykyk)


and that's the whole page!! πŸ’… this was libnvme(9), part of the API Manual, and the footer was stamped August 2026 ✨ go forth and parse your AEM messages, you absolute genius πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from