nvme_init_verify(9)
π nvme_init_verify(9) π
okay bestie, welcome to the libnvme API manual β this is the page for nvme_init_verify, and honestly? it's giving "small function, big job." let's get into it π
β¨ NAME β¨
nvme_init_verify β initialize the passthru command for a verify command π¦
πΈ SYNOPSIS πΈ
void nvme_init_verify (struct libnvme_passthru_cmd *cmd , __u32 nsid ,
__u64 slba , __u16 nlb , __u16 control , __u8 cev , void *data , __u32
data_len , void *metadata , __u32 metadata_len );
like, yes, that's ten (10) whole arguments. she's high maintenance but she's worth it π
π«Ά ARGUMENTS π«Ά
cmdβ the passthru command you're setting up. this is the main character, everything gets written into it β¨nsidβ Namespace ID. which namespace we're talking to ποΈslbaβ starting logical block. where the party begins π₯nlbβ number of logical blocks β and heads up, it's 0-based, so don't come at it with your 1-based brain πcontrolβ the upper 16 bits of cdw12. yes, just the upper half, don't get greedy πcevβ Command Extension Value (CETYPEis non-zero, iykyk) πdataβ pointer to the user address of the data buffer π§data_lenβ length of the user buffer,data, in bytes πmetadataβ pointer to the user address of the metadata buffer πmetadata_lenβ length of the user buffer,metadata, in bytes π
π DESCRIPTION π
so what does it actually do? it initializes the passthru command buffer for the Verify command. that's it, that's the vibe. clean, simple, iconic β
π NOTE π
okay this part matters, bestie, don't skip it: the Verify command transfers data or metadata to the controller to perform the verification, but not back to the host. so no data comes home. it's a one-way trip fr fr π
π sign-off π
that's the whole page, bestie β brought to you by libnvme API manual, version nvme_init_verify, dated October 2026. slay, go verify something πβ¨
π¦ 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