libnvme_get_logical_block_size-libnvme3(2)

libnvme_get_logical_block_size-libnvme32

Retrieve block size

Usage

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.

From nvme-cli 3.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.