nvme_init_compare(9)
β¨ nvme_init_compare π
okay so bestie, welcome to the libnvme API manual β this one's page is nvme_init_compare(9) and it's lowkey a little glow-up for a passthru command buffer π
πΈ NAME πΈ
nvme_init_compare β literally initializes the passthru command for a user compare command, no cap π«Ά
π¦ SYNOPSIS π¦
void nvme_init_compare (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, that's the whole signature, copying it exactly because we do not mess with the source β¨
π ARGUMENTS π
cmdβ the passthru command you're gonna use, she's the main character πnsidβ Namespace ID, iykykslbaβ Starting logical block, the beginning of the vibe checknlbβ Number of logical blocks, and bestie listen: it's 0-based πcontrolβ Command control flags, seeenum nvme_io_control_flagscevβ Command Extension Value (and heads up,CETYPEis non-zero here π)dataβ Pointer to the user address of the data bufferdata_lenβ Length of the user buffer,data, in bytes πmetadataβ Pointer to the user address of the metadata buffermetadata_lenβ Length of the user buffer,metadata, in bytes
π DESCRIPTION π
So like β this function initializes the passthru command buffer for the Compare command. That's it, that's the whole thing, she's simple and she slays π β¨
fr fr, don't sleep on the0-basedthing fornlbβ that's the one detail that'll get you π
okay bye bestie, go forth and compare π¦ this was the libnvme API manual, page nvme_init_compare(9), dated October 2026 β periodt π
π¦ 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