libnvme(9)
π libnvme(9) β API Manual β¨
okay so bestie, we're diving into the libnvme API manual today and the main character of this page is enum nvme_id_ctrl_nvm_kpiocap β yes, that's a whole mouthful, we stan anyway π«Ά
πΈ NAME πΈ
enum nvme_id_ctrl_nvm_kpiocap β literally the Key Per I/O Capabilities enum. that's it, that's the vibe β¨
π SYNOPSIS π
here's the whole thing, copied exactly, no cap:
enum nvme_id_ctrl_nvm_kpiocap {
NVME_ID_CTRL_NVM_KPIOCAP_KPIOS_SHIFT ,
NVME_ID_CTRL_NVM_KPIOCAP_KPIOS_MASK ,
NVME_ID_CTRL_NVM_KPIOCAP_KPIOSC_SHIFT ,
NVME_ID_CTRL_NVM_KPIOCAP_KPIOSC_MASK
};
likeβ¦ four constants, zero drama π
β Constants β (the iconic four)
NVME_ID_CTRL_NVM_KPIOCAP_KPIOS_SHIFTβ the shift amount you use to get Key Per I/O Supported (KPIOS) out of whatever you're digging through πNVME_ID_CTRL_NVM_KPIOCAP_KPIOS_MASKβ the mask for KPIOS, so you can isolate those bits like a boss πNVME_ID_CTRL_NVM_KPIOCAP_KPIOSC_SHIFTβ the shift amount for Key Per I/O Scope (KPIOSC) β yes it's KPIOS with aCon the end, don't let the naming jump-scare you πNVME_ID_CTRL_NVM_KPIOCAP_KPIOSC_MASKβ the mask for KPIOSC. masking queen π
lowkey the whole page is just shift amounts and masks. shift = move the bits, mask = keep the bits. that's the entire lore, iykyk π§
and that's the page, bestie β go forth and mask those keys per I/O ππ
October 2026 Β· enum nvme_id_ctrl_nvm_kpiocap Β· libnvme(9) β mwah, that's the footer, see u next manpage πβ
π¦ 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