nvme_init_zns_report_zones(9)
β¨ nvme_init_zns_report_zones(9) β¨
okay so bestie, welcome to the libnvme API manual π this one's a function page, and it's lowkey the setup step you need before you can ask a ZNS namespace to spill the tea about its zones. no cap.
πΈ NAME πΈ
nvme_init_zns_report_zones β Initialize passthru command to return the list of zones π¦
like, it doesn't run anything, it just gets the passthru command all cute and ready so it can later return the list of zones. it's giving backstage-prep main character energy π
β SYNOPSIS β
void nvme_init_zns_report_zones (struct libnvme_passthru_cmd *cmd ,
__u32 nsid , __u64 slba , enum nvme_zns_report_options opts , bool
extended , bool partial , void *data , __u32 len );
it's a void function, so it returns literally nothing β it just does its lil setup thing and dips π
π ARGUMENTS π
cmdβ the passthru command to use. this is the thing you're initializing, bestie, so hand it over and let it cook π₯nsidβ the Namespace ID. you gotta tell it which namespace you're talking about, iykyk β¨slbaβ the Starting LBA. where the zone-reporting party begins πoptsβ the Reporting options. these areenum nvme_zns_report_optionsvalues, so pick your vibe from that enum πextendedβ Extended report. it's abool, so it's a yes/no situation π¦partialβ Partial report requested. also aboolβ you either want the partial report or you don't, periodt πdataβ the userspace address of the report zones data buffer. this is where the zones are gonna land, so make sure it's a real one πlenβ the Length of the data buffer. a__u32, and yes it matters, don't be out here mismatching buffer and length π
π DESCRIPTION π
so what does it actually do? it initializes the passthru command buffer for the ZNS Management Receive - Report Zones command π
that's it. that's the whole vibe. it's the glow-up your struct libnvme_passthru_cmd *cmd needs before that Report Zones command can do its thing. think of it as setting the stage so the zones can make their entrance β
ngl, this is an init function β it fills in the command buffer. it is not the thing that submits the command, so don't be out here expecting zones to come back just from calling this π
and that's the whole page, bestie β go forth and report those zones πβ¨ππ¦πΈπ π«Ά
sign-off szn: this page is from the libnvme API manual, dated October 2026 ππ§ mwah, ily, read the source next π
π¦ 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