libnvme(9)
π libnvme(9) β API Manual
okay bestie, so this is a page from the libnvme API Manual, section 9, and it's literally all about one enum. one. single. enum. and honestly? she's iconic for it. π
β¨ NAME β¨
enum nvme_id_ctrl_mec β flags indicating the capabilities of the Management Endpoint in the Controller, &struct nvme_id_ctrl.mec. no cap, that's the whole vibe. it's giving "small but mighty". π¦
πΈ SYNOPSIS πΈ
here's the lineup, bestie β look at her go:
enum nvme_id_ctrl_mec {
NVME_CTRL_MEC_TWPME_SHIFT ,
NVME_CTRL_MEC_PCIEME_SHIFT ,
NVME_CTRL_MEC_TWPME_MASK ,
NVME_CTRL_MEC_PCIEME_MASK ,
NVME_CTRL_MEC_TWPME ,
NVME_CTRL_MEC_PCIEME
};
like, six constants, zero drama. we love a tidy enum. β¨
π Constants π
okay so these are the members, and I need you to memorise them because they will come up. fr fr. π
NVME_CTRL_MEC_TWPME_SHIFTβ the TWPME shift. that's it, that's the whole description. she's mysterious, she's minimal, she's serving. π«ΆNVME_CTRL_MEC_PCIEME_SHIFTβ the PCIEME shift. same energy. short and sweet. πNVME_CTRL_MEC_TWPME_MASKβ the TWPME mask. yes bestie, a mask. for the shift. that's how this works. πΈNVME_CTRL_MEC_PCIEME_MASKβ the PCIEME mask. matching set with the one above, we love coordinated accessories. πNVME_CTRL_MEC_TWPMEβ okay this one actually does something. if it's set, then the NVM Subsystem contains one or more Management Endpoints on the 2-Wire port. lowkey the main character of this enum. π₯NVME_CTRL_MEC_PCIEMEβ and if this one is set, then the NVM Subsystem contains one or more Management Endpoints on one or more PCIe ports. highkey the other main character. there are two of them. it's a duo. π
real talk: these are capability flags, so "if set" means exactly what it says β don't go assuming anything beyond what's written here, bestie. iykyk. π
and that's the whole page!! nothing scary, nothing hidden, just six constants living their best lives in an enum. you ate that, honestly. π
signed, sealed, delivered with love from the libnvme API Manual β version vibes, dated October 2026. mwah πβ¨π
π¦ 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