libnvme(2)
π NAME π
bestie, meet struct nvme_primary_ctrl_cap β aka the Identify - Controller Capabilities Structure β¨ it's from the libnvme API manual and it lives in section 2. she's a struct, she's iconic, she's holding all the controller capability tea π
π¦ SYNOPSIS π¦
okay so here's the whole shape of her, no cap:
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];
};
πΈ Members πΈ
literally every single field, in order, zero skipped π
cntlidβ Controller Identifier πͺͺportidβ Port Identifier πͺcrtβ Controller Resource Types π§©rsvd5β reserved π (don't touch her, she's just vibing there)vqfrtβ VQ Resources Flexible Total πvqrfaβ VQ Resources Flexible Assigned βvqrfapβ VQ Resources Flexible Allocated to Primary πvqprtβ VQ Resources Private Total πvqfrsmβ VQ Resources Flexible Secondary Maximum β¬οΈvqgranβ VQ Flexible Resource Preferred Granularity ποΈrsvd48β reserved π (again, just sitting there being mysterious)vifrtβ VI Resources Flexible Total πvirfaβ VI Resources Flexible Assigned βvirfapβ VI Resources Flexible Allocated to Primary πviprtβ VI Resources Private Total πvifrsmβ VI Resources Flexible Secondary Maximum β¬οΈvigranβ VI Flexible Resource Preferred Granularity ποΈrsvd80β reserved π (yes, another one β the reserved girlies said "we're staying")
not me pointing out that thersvd5,rsvd48, andrsvd80fields are all just padding doing absolutely nothing academically πβ¨ they keep the byte math honest so the real fields land in the right spots. respect the grind fr fr.
and that's the whole page, bestie π«Ά this was struct nvme_primary_ctrl_cap from the libnvme API Manual, dated July 2026 β documented right here under libnvme(2). go forth and identify those controller capabilities, queen ππ§π
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms