libnvme(9)
π NAME π
okay bestie, welcome to libnvme β the manual's literally called API Manual and this page is about one very specific lil guy: struct nvme_primary_ctrl_cap, aka the Identify - Controller Capabilities Structure. no cap, that's the whole name. π«Ά
β¨ SYNOPSIS β¨
here's the struct in all its glory, char-for-char, don't touch anything:
struct nvme_primary_ctrl_cap {
__le16 cntlid;
__le16 portid;
__u8 crt;
__u8 rsvd5[27];
__le32 vqfrt;
__le32 vqrfa;
__le16 vqrfap;
__le16 vqprt;
__le16 vqfrsm;
__le16 vqgran;
__u8 rsvd48[16];
__le32 vifrt;
__le32 virfa;
__le16 virfap;
__le16 viprt;
__le16 vifrsm;
__le16 vigran;
__u8 rsvd80[4016];
};
like, yes there are a LOT of fields. yes some of them are just vibes and reserved bytes. we love her anyway π
π Members π
okay so every single field, in order, no skips, let's go:
cntlidβ Controller Identifier πportidβ Port Identifier πΈcrtβ Controller Resource Typesrsvd5β reserved (it's giving "do not perceive her" energy π)vqfrtβ VQ Resources Flexible Total π₯vqrfaβ VQ Resources Flexible Assignedvqrfapβ VQ Resources Flexible Allocated to Primaryvqprtβ VQ Resources Private Totalvqfrsmβ VQ Resources Flexible Secondary Maximumvqgranβ VQ Flexible Resource Preferred Granularity βrsvd48β reserved (again. mind your business bestie π)vifrtβ VI Resources Flexible Total π₯virfaβ VI Resources Flexible Assignedvirfapβ VI Resources Flexible Allocated to Primaryviprtβ VI Resources Private Totalvifrsmβ VI Resources Flexible Secondary Maximumvigranβ VI Flexible Resource Preferred Granularity βrsvd80β reserved (the final boss of reserved fields, 4016 bytes of pure "nothing to see here" π)
lowkey obsessed with how the VQ block and the VI block are basically twins β same shape, different prefix. it's giving coordinated outfits. iykyk π
and that's the whole page bestie, you ate that π
sign-off szn: this was the libnvme(9) page from the API Manual β libnvme(9), dated October 2026, all about struct nvme_primary_ctrl_cap. take care of her, she's iconic πβ¨π§
π¦ 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