NVME_IDENTIFY_NS_GRANULARITY(2)
β¨ NAME β¨
nvme_identify_ns_granularity β bestie, this one retrieves namespace granularity identification π it's giving "tell me how chunky your namespaces are" energy, fr fr
(this page lives in the libnvme API manual, section 2, iykyk π¦)
πΈ SYNOPSIS πΈ
int nvme_identify_ns_granularity (int fd , struct
nvme_id_ns_granularity_list *gr_list );
π ARGUMENTS π
fdβ the file descriptor of the nvme device, aka your little backstage pass to the controller πgr_listβ user space destination address to transfer the data π«Ά that's where the goods land, no cap
π DESCRIPTION π
Okay so, the way that this works: if the controller supports reporting of Namespace Granularity, then a Namespace Granularity List gets returned to the host for up to sixteen namespace granularity descriptors. sixteen!! a whole sweet sixteen of them πβ¨
See struct nvme_id_ns_granularity_list for the definition of the returned structure β that's where all the lore lives, go read it π
π₯ RETURN π₯
It gives you the nvme command status if a response was received (peep enum nvme_status_field for that whole situation) β or -1 with errno set otherwise π so always check, bestie, always.
no response =-1+errno. that's the vibe check. don't ignore it π
that's the whole page, you ate it, periodt ππ§
sign-off szn π this came from the libnvme API manual, dated July 2026 β mwah, go granularity-identify something iconic β¨
π¦ 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