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

# nvme\_read\_config(2)

Read NVMe JSON configuration file

## NAME

nvme\_read\_config - Read NVMe JSON configuration file

## SYNOPSIS

**int nvme\_read\_config** **(nvme\_root\_t r** *,* **const char \*config\_file** *);*

## ARGUMENTS

- r

  nvme\_root\_t object

- config\_file

  JSON configuration file

## DESCRIPTION

Read in the contents of *config\_file* and merge them with the elements in *r*.

## RETURN

0 on success, -1 on failure with errno set.
