nvme_scan_ctrl_namespaces(2)
β¨ nvme_scan_ctrl_namespaces β¨
okay bestie, gather round, because we're reading a <pink>libnvme API manual</pink> page and it's literally the cutest little syscall wrapper you've ever seen. say hi to nvme_scan_ctrl_namespaces(2) π
πΈ NAME πΈ
nvme_scan_ctrl_namespaces β go on a lil scavenger hunt for namespaces inside a controller π΅οΈβοΈβ¨
π SYNOPSIS π
int nvme_scan_ctrl_namespaces (nvme_ctrl_t c , struct dirent ***ns );
yep that's the whole thing. two args, one int coming back at you. no cap. π
π¦ ARGUMENTS π¦
cβ the controller you wanna scan, girl. this is the one we're snooping through πnsβ a pointer to an array of dirents. that's where all the found namespace entries are gonna land π
β RETURN β
it returns the number of entries in ns β like, how many namespaces it found. that's the whole vibe check result right there π
not me being obsessed with a function that just... counts things. iconic behavior honestly π«Ά
and that's a wrap, bestie!! this page came out of the <purple>libnvme API manual</purple> and it's dated <cyan>July 2026</cyan>, so if you're reading this in the future, hey, hope the namespaces are plentiful πβ¨ byeeee ππ§
π¦ 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