libnvme(9)
π libnvme(9) β the enum nvme_id_ctrl_bpcap glow-up
okay so real talk, bestie: this page lives in the libnvme manual, section 9, and it's all about one little enum that tells you what your NVMe controller can do with Boot Partition Write Protection. it's giving "small but mighty" β¨ no cap, it's a short one, so let's devour it π
πΈ NAME πΈ
enum nvme_id_ctrl_bpcap β Boot Partition Capabilities. that's it, that's the whole name, and she ate π
β¨ SYNOPSIS β¨
here's the whole enum, copied exactly because we do not play with syntax π
enum nvme_id_ctrl_bpcap {
NVME_CTRL_BPCAP_RPMBBPWPS_SHIFT ,
NVME_CTRL_BPCAP_SFBPWPS_SHIFT ,
NVME_CTRL_BPCAP_RPMBBPWPS_MASK ,
NVME_CTRL_BPCAP_SFBPWPS_MASK ,
NVME_CTRL_BPCAP_RPMBBPWPS_NOT_SPECIFIED ,
NVME_CTRL_BPCAP_RPMBBPWPS_NOT_SUPPORTED ,
NVME_CTRL_BPCAP_RPMBBPWPS_SUPPORTED
};
like, yes, there's a lil blank line before the closing brace. we keep it. it's part of her personality π
π¦ Constants π¦
seven of them. every single one. let's go π₯
NVME_CTRL_BPCAP_RPMBBPWPS_SHIFTβ this is the shift amount, i.e. how far you gotta slide over to pull the RPMB Boot Partition Write Protection Support out of thestruct nvme_id_ctrl.bpcapfield. bit-shifting era π«NVME_CTRL_BPCAP_SFBPWPS_SHIFTβ same vibe, different bit: the shift amount for getting the Set Features Boot Partition Write Protection Support out of that samestruct nvme_id_ctrl.bpcapfield π«ΆNVME_CTRL_BPCAP_RPMBBPWPS_MASKβ the mask you use to get the RPMB Boot Partition Write Protection Support from thestruct nvme_id_ctrl.bpcapfield. mask on, facts out πNVME_CTRL_BPCAP_SFBPWPS_MASKβ and the mask for the Set Features Boot Partition Write Protection Support, also fromstruct nvme_id_ctrl.bpcap. iconic pair, honestly πNVME_CTRL_BPCAP_RPMBBPWPS_NOT_SPECIFIEDβ the controller literally did not say. support for RPMB Boot Partition Write Protection is not specified. mysterious main character energy π΅οΈββοΈNVME_CTRL_BPCAP_RPMBBPWPS_NOT_SUPPORTEDβ nope, this controller does not support RPMB Boot Partition Write Protection. it said no βNVME_CTRL_BPCAP_RPMBBPWPS_SUPPORTEDβ slay!! this controller does support RPMB Boot Partition Write Protection. green flags only β
ngl bestie, that's the whole page. three "what it is" constants and three "what it means" constants, all hanging off thebpcapfield ofstruct nvme_id_ctrl. iykyk π
and that's a wrap on the enum nvme_id_ctrl_bpcap page from the libnvme(9) manual β dated October 2026, and the footer said enum nvme_id_ctrl_bpcap / libnvme(9), so we're closing the group chat exactly the way we opened it π bye bestie, go read your bpcap bits responsibly π¦π
π¦ 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