libnvme(2)
β¨ NAME β¨
enum nvme_id_ctrl_anacap β bestie, this field is literally the whole vibe check on what a controller can actually do when it comes to Asymmetric Namespace Access Reporting π
π¦ SYNOPSIS π¦
enum nvme_id_ctrl_anacap {
NVME_CTRL_ANACAP_OPT ,
NVME_CTRL_ANACAP_NON_OPT ,
NVME_CTRL_ANACAP_INACCESSIBLE ,
NVME_CTRL_ANACAP_PERSISTENT_LOSS ,
NVME_CTRL_ANACAP_CHANGE ,
NVME_CTRL_ANACAP_GRPID_NO_CHG ,
NVME_CTRL_ANACAP_GRPID_MGMT
};
π Constants π
okay so each one of these is a little flag bit, and every single one is "if set, thenβ¦" β so if it's set, the controller is giving that energy. no cap. π
NVME_CTRL_ANACAP_OPTβ if this one's set, the controller can report the ANA Optimized state. main character behaviour fr fr β¨NVME_CTRL_ANACAP_NON_OPTβ if set, the controller can report ANA Non-Optimized state. not every namespace is at its best and that's okay π«ΆNVME_CTRL_ANACAP_INACCESSIBLEβ if set, the controller can report the ANA Inaccessible state. π yeah, sometimes the door is just closed.NVME_CTRL_ANACAP_PERSISTENT_LOSSβ if set, the controller can report ANA Persistent Loss state. it's giving permanent, not a phase πNVME_CTRL_ANACAP_CHANGEβ if set, the controller can report ANA Change state. plot twist incoming, stay tuned πΈNVME_CTRL_ANACAP_GRPID_NO_CHGβ if this one is set, then theANAGRPIDfield in the Identify Namespace data structure (struct nvme_id_ns.anagrpid) does not change while the namespace is attached to any controller. she's consistent, she's stable, we love that for her πNVME_CTRL_ANACAP_GRPID_MGMTβ if set, then the controller supports a non-zero value in theANAGRPIDfield of the Namespace Management command. so you can actually set one, iconic π
lowkey important: this islibnvme(2), part of the libnvme API manual. the source/version tag on this page is literally justenum nvme_id_ctrl_anacap, and it's dated July 2026 β so yeah, bestie, this one is from the future and she ate ππ§π
π¦ 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