libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… libnvme(9) β€” bestie edition πŸŽ€

Okay so real talk, this page lives in the libnvme API manual, and it's literally all about one little enum that tells you what a controller can do with Device Self-test stuff. It's giving "tiny but mighty," and honestly? Iconic. Let's get into it. ✨


🌸 NAME 🌸

enum nvme_id_ctrl_dsto β€” the flags that say which optional Device Self-test command behaviors and operation behaviors the controller or NVM subsystem supports. That's the whole vibe. πŸ’–

No cap, it's just a bundle of constants describing what your hardware is willing to do.


πŸ¦‹ SYNOPSIS πŸ¦‹

enum nvme_id_ctrl_dsto {
    NVME_CTRL_DSTO_SDSO_SHIFT ,
    NVME_CTRL_DSTO_HIRS_SHIFT ,
    NVME_CTRL_DSTO_SDSO_MASK ,
    NVME_CTRL_DSTO_HIRS_MASK ,
    NVME_CTRL_DSTO_ONE_DST ,
    NVME_CTRL_DSTO_HIRS

};

Look at her. Six constants. Flawless. Periodt. πŸ‘‘


✨ Constants ✨

  • NVME_CTRL_DSTO_SDSO_SHIFT β€” the shift amount you use to pull the value of Single Device Self-test Operation out of the Device Self-test Options field. Like, shift it and slay. 🫢
  • NVME_CTRL_DSTO_HIRS_SHIFT β€” the shift amount to get the value of Host-Initiated Refresh Support out of that same Device Self-test Options field. Two shifts, two besties, same field. πŸ’«
  • NVME_CTRL_DSTO_SDSO_MASK β€” the mask that gets you the value of Single Device Self-test Operation. Mask on, facts intact. πŸ™ˆ
  • NVME_CTRL_DSTO_HIRS_MASK β€” the mask for the value of Host-Initiated Refresh Support. Pop it on, read your bits. πŸ’…
  • NVME_CTRL_DSTO_ONE_DST β€” okay this one's a whole mood: if it's set, then the NVM subsystem supports only one device self-test operation in progress at a time. If it's cleared, then the NVM subsystem supports one device self-test operation per controller at a time. So it's either one globally or one per controller β€” read the bit before you assume, bestie. πŸ‘€
  • NVME_CTRL_DSTO_HIRS β€” if it's set, then the controller supports the Host-Initiated Refresh capability. That's it, that's the flag. πŸ”₯

Little vibe check: NVME_CTRL_DSTO_ONE_DST is the only one with a real conditional attached β€” set means one at a time for the whole subsystem, cleared means one per controller. Don't mix those up, iykyk. πŸ’€

And that's the page, bestie! 🌈 This little glow-up comes from the libnvme API manual β€” enum nvme_id_ctrl_dsto β€” dated October 2026. Mwah, go read your bits responsibly. πŸ’œπŸŽ€πŸ¦‹

πŸ“¦ where this page comes from