libnvme(2)
πΈ libnvme β enum nvme_id_ctrl_sgls π
okay bestie, welcome to the API Manual for libnvme, and today's episode is all about one very specific little enum. sit down, drink some water, this is gonna be quick and cute. π«Ά
The star of the show is enum nvme_id_ctrl_sgls β and what it's for, per the NAME section, is: this field indicates if SGLs are supported for the NVM Command Set and the particular SGL types supported. That's the whole plot. no drama, no plot twists, just a field telling you which SGL types are out here living their truth. β¨
β¨ SYNOPSIS β¨
enum nvme_id_ctrl_sgls {
NVME_CTRL_SGLS_SUPPORTED ,
NVME_CTRL_SGLS_KEYED ,
NVME_CTRL_SGLS_BIT_BUCKET ,
NVME_CTRL_SGLS_MPTR_BYTE_ALIGNED ,
NVME_CTRL_SGLS_OVERSIZE ,
NVME_CTRL_SGLS_MPTR_SGL ,
NVME_CTRL_SGLS_OFFSET ,
NVME_CTRL_SGLS_TPORT
};
π Constants π
bestie here's the full roster, all eight of them, no crumbs left behind: π
NVME_CTRL_SGLS_SUPPORTEDNVME_CTRL_SGLS_KEYEDNVME_CTRL_SGLS_BIT_BUCKETNVME_CTRL_SGLS_MPTR_BYTE_ALIGNEDNVME_CTRL_SGLS_OVERSIZENVME_CTRL_SGLS_MPTR_SGLNVME_CTRL_SGLS_OFFSETNVME_CTRL_SGLS_TPORT
not me counting them twice to make sure nobody got left out π eight. eight constants. ate and left zero evidence. π
that's genuinely the whole page, bestie β short king energy but make it an enum. no options, no flags, no exit statuses, no environment variables, no SEE ALSO, just the constants above and the field they describe. π
signing off in style: this little masterpiece lives in the libnvme API Manual, it's page enum nvme_id_ctrl_sgls of libnvme(2), and it's stamped July 2026. periodt. π¦π
π¦ 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