libnvme(2)
π NAME π
enum nvme_id_ctrl_dsto β bestie, this is the little enum of flags that tells you what optional Device Self-test command/operation behaviors your controller or NVM subsystem can actually do. It's giving "capability cheat sheet" energy. β¨
(And yeah, this page lives in the libnvme manual, section 2 β now you know the lore π«Ά)
πΈ 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
};
π Constants π
okay so here's the whole squad, one by one, no skipping, no cap:
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. Yes it's a shift, yes it's iconic πNVME_CTRL_DSTO_HIRS_SHIFTβ the shift amount you use to get the value of Host-Initiated Refresh Support out of that same Device Self-test Options field. Same field, different little slice π¦NVME_CTRL_DSTO_SDSO_MASKβ the mask that grabs you the value of Single Device Self-test Operation. Mask on, bestie πNVME_CTRL_DSTO_HIRS_MASKβ the mask that grabs you the value of Host-Initiated Refresh Support.NVME_CTRL_DSTO_ONE_DSTβ if this one is 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. Read that twice, it's the whole vibe check π₯NVME_CTRL_DSTO_HIRSβ if this is set, then the controller supports the Host-Initiated Refresh capability. That's it, that's the flag π
ngl, the difference between NVME_CTRL_DSTO_ONE_DST set vs cleared is the exact kind of tiny detail that ruins your whole week if you skim it. Don't skim it, bestie π
and that's the page!! β¨ literally every constant accounted for, nothing skipped, we ate and left no crumbs π
tiny sign-off: this one was dated July 2026, it's the enum nvme_id_ctrl_dsto page, and it ships with libnvme β manual section 2, as always π bye bye!! π§π
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms