DOKK / manpages / debian 12 / libnvme-dev / nvme_ns_read.2.en
nvme_ns_read(2) libnvme API manual nvme_ns_read(2)

nvme_ns_read - Read from a namespace

int nvme_ns_read (nvme_ns_t n , void *buf , off_t offset , size_t count );

Namespace instance
Buffer into which the data will be transferred
LBA offset of n
Number of sectors in buf

Number of sectors read or -1 on error.

nvme_ns_read January 2023