libnvme(9)
π NAME π
enum nvme_id_ctrl_trattr β the Tracking Attributes, bestie!! β¨ This is the enum that holds all the shift amounts and masks you need to pull the tracking-attribute bits out of the struct nvme_id_ctrl.trattr field. It's giving "small but essential", fr fr. π
Oh and hey β this whole thing lives in the libnvme API Manual, section 9, iykyk. π¦
β¨ SYNOPSIS β¨
enum nvme_id_ctrl_trattr {
NVME_CTRL_TRATTR_THMCS_SHIFT ,
NVME_CTRL_TRATTR_TUDCS_SHIFT ,
NVME_CTRL_TRATTR_MRTLL_SHIFT ,
NVME_CTRL_TRATTR_THMCS_MASK ,
NVME_CTRL_TRATTR_TUDCS_MASK ,
NVME_CTRL_TRATTR_MRTLL_MASK
};
Like, that's the whole roster π β three _SHIFT girlies and three _MASK girlies, and they all ate. π
πΈ Constants πΈ
Okay so every single one of these is a little helper that reads something out of the struct nvme_id_ctrl.trattr field β the shift ones tell you how far to shift, the mask ones give you the mask. No cap, that's the whole vibe. π«Ά
NVME_CTRL_TRATTR_THMCS_SHIFTβ the shift amount you use to get the Track Host Memory Changes Support out of thestruct nvme_id_ctrl.trattrfield. β¨NVME_CTRL_TRATTR_TUDCS_SHIFTβ the shift amount you use to get the Track User Data Changes Support out of thestruct nvme_id_ctrl.trattrfield. πNVME_CTRL_TRATTR_MRTLL_SHIFTβ the shift amount you use to get the Memory Range Tracking Length Limit out of thestruct nvme_id_ctrl.trattrfield. π¦NVME_CTRL_TRATTR_THMCS_MASKβ the mask you use to get the Track Host Memory Changes Support out of thestruct nvme_id_ctrl.trattrfield. πNVME_CTRL_TRATTR_TUDCS_MASKβ the mask you use to get the Track User Data Changes Support out of thestruct nvme_id_ctrl.trattrfield. πNVME_CTRL_TRATTR_MRTLL_MASKβ the mask you use to get the Memory Range Tracking Length Limit out of thestruct nvme_id_ctrl.trattrfield. β
Lowkey the pattern here is chef's kiss:THMCS= Track Host Memory Changes Support,TUDCS= Track User Data Changes Support,MRTLL= Memory Range Tracking Length Limit. Three pairs, six constants, zero notes. Periodt. π
And that's the page!! π October 2026, enum nvme_id_ctrl_trattr, libnvme(9) β mwah, ty for reading, ily, go track some attributes bestie ππ§
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms