OS Manuals

nvme_init_compare-libnvme3(2)

nvme_init_compare - Initialize passthru command for a user compare command

nvme_init_compare(9) libnvme API manual nvme_init_compare(9)

nvme_init_compare - Initialize passthru command for a user compare command

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 );

Passthru command to use
Namespace ID
Starting logical block
Number of logical blocks (0-based)
Command control flags, see enum nvme_io_control_flags.
Command Extension Value (CETYPE is non-zero)
Pointer to user address of the data buffer
Length of user buffer, data, in bytes
Pointer to user address of the metadata buffer
Length of user buffer, metadata, in bytes

Initializes the passthru command buffer for the Compare command.

nvme_init_compare October 2026

nvme-cli 3.2-r0 · os · ingested 2026-10-31