libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’– NAME πŸ’–

okay so bestie, this is the libnvme(9) page from the API Manual, and the main character is enum nvme_id_ctrl_vwci β€” it's giving "This field indicates information about remaining number of times that VPD contents are able to be updated using the VPD Write command", and yes, it says see &struct nvme_id_ctrl.vwci 🫢✨


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the whole shape of it, no cap:

enum nvme_id_ctrl_vwci {
    NVME_CTRL_VWCI_VWCR_SHIFT ,
    NVME_CTRL_VWCI_VWCRV_SHIFT ,
    NVME_CTRL_VWCI_VWCR_MASK ,
    NVME_CTRL_VWCI_VWCRV_MASK ,
    NVME_CTRL_VWCI_VWCR ,
    NVME_CTRL_VWCI_VWCRV

};

πŸŽ€ Constants πŸŽ€

  • NVME_CTRL_VWCI_VWCR_SHIFT β€” VWCR shift ✨
  • NVME_CTRL_VWCI_VWCRV_SHIFT β€” VWCRV shift πŸ’…
  • NVME_CTRL_VWCI_VWCR_MASK β€” VWCR mask πŸŽ€
  • NVME_CTRL_VWCI_VWCRV_MASK β€” VWCRV mask 🌸
  • NVME_CTRL_VWCI_VWCR β€” Mask to get value of VPD Write Cycles Remaining. If the VPD Write Cycle Remaining Valid bit is set, then this field contains a value indicating the remaining number of times that VPD contents are able to be updated using the VPD Write command. If this field is set to 7Fh, then the remaining number of times that VPD contents are able to be updated using the VPD Write command is greater than or equal to 7Fh. πŸ”₯
  • NVME_CTRL_VWCI_VWCRV β€” VPD Write Cycle Remaining Valid. If this bit is set, then the VPD Write Cycle Remaining field is valid. If this bit is cleared, then the VPD Write Cycles Remaining field is invalid and cleared to 0h. πŸ‘‘

cute little sign-off bestie: this iconic page is from October 2026, it's the enum nvme_id_ctrl_vwci page, and the manual name is libnvme(9) β€” mwah, slay, bye πŸ’‹πŸ’–πŸ¦‹

πŸ“¦ where this page comes from