---
name: "nvme_ns_read"
section: "2"
platform: "linux"
package: "libnvme-dev"
version: "1.13-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nvme_ns_read"
---

# nvme\_ns\_read(2)

Read from a namespace

## NAME

nvme\_ns\_read - Read from a namespace

## SYNOPSIS

**int nvme\_ns\_read** **(nvme\_ns\_t n** *,* **void \*buf** *,* **off\_t offset** *,* **size\_t count** *);*

## ARGUMENTS

- n

  Namespace instance

- buf

  Buffer into which the data will be transferred

- offset

  LBA offset of *n*

- count

  Number of sectors in *buf*

## RETURN

Number of sectors read or -1 on error.
