libnvme(2)
π libnvme β enum nvme_id_ctrl_vwci π
okay bestie, welcome to the libnvme manual (section 2, the API one, iykyk β¨). today we're doing one (1) enum and honestly? it's giving niche-but-important. let's go π«Ά
β¨ NAME β¨
enum nvme_id_ctrl_vwci β this field tells you the tea about how many times you can still update your VPD contents using the VPD Write command. and if you wanna see the bigger picture, go peek at &struct nvme_id_ctrl.vwci π
πΈ SYNOPSIS πΈ
enum nvme_id_ctrl_vwci {
NVME_CTRL_VWCI_VWCR ,
NVME_CTRL_VWCI_VWCRV
};
π Constants π
no cap, there are exactly two of them and both are literally about the same counter. here they are, in order, no skips:
NVME_CTRL_VWCI_VWCRβ this is the mask you use to get the value of VPD Write Cycles Remaining π. so: if the VPD Write Cycle Remaining Valid bit is set, then this field holds a value telling you how many times you've still got left to update VPD contents with the VPD Write command. and if this field is set to7Fh, then the remaining number of times you can update VPD contents using the VPD Write command is greater than or equal to7Fhβ so like, a lot, it's not giving exact numbers anymore π.NVME_CTRL_VWCI_VWCRVβ VPD Write Cycle Remaining Valid, the vibe check bit β¨. if this bit is set, then the VPD Write Cycle Remaining field is valid, slay, trust it π. if this bit is cleared, then the VPD Write Cycles Remaining field is invalid and cleared to0hβ so don't you dare read meaning into it π.
fr fr reminder: those two fields are a package deal. the mask only means something when the valid bit says it does. read the bit first, bestie π¦
π that's the whole page, no fillers, no fluff, just a tiny enum with main character energy.
sign-off time π this page is enum nvme_id_ctrl_vwci from the libnvme manual, section 2, dated July 2026. periodt. go write some VPD π
β¨
π¦ 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