Reference

libnvme_get_logical_block_size-libnvme3(2)

Retrieve block size

NAME

libnvme_get_logical_block_size - Retrieve block size

SYNOPSIS

int libnvme_get_logical_block_size (struct libnvme_transport_handle *hdl , __u32 nsid , int *blksize );

ARGUMENTS

hdl

Transport handle

nsid

Namespace id

blksize

Pointer to where the block size will be set on success

RETURN

0 on success, the nvme command status if a response was received (see enum nvme_status_field) or a negative error otherwise.