summaryrefslogtreecommitdiffstats
path: root/doc/man/nvme_get_logical_block_size.2
blob: 66fdf64071b2d103434f084b05f09f4635274602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.TH "nvme_get_logical_block_size" 9 "nvme_get_logical_block_size" "August 2022" "libnvme API manual" LINUX
.SH NAME
nvme_get_logical_block_size \- Retrieve block size
.SH SYNOPSIS
.B "int" nvme_get_logical_block_size
.BI "(int fd "  ","
.BI "__u32 nsid "  ","
.BI "int *blksize "  ");"
.SH ARGUMENTS
.IP "fd" 12
File descriptor of nvme device
.IP "nsid" 12
Namespace id
.IP "blksize" 12
Pointer to where the block size will be set on success
.SH "RETURN"
The nvme command status if a response was received (see
\fIenum nvme_status_field\fP) or -1 with errno set otherwise.