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

# nvme\_parse\_uri(2)

Parse the URI string

## NAME

nvme\_parse\_uri - Parse the URI string

## SYNOPSIS

**struct nvme\_fabrics\_uri \* nvme\_parse\_uri** **(const char \*str** *);*

## ARGUMENTS

- str

  URI string

## DESCRIPTION

Parse the URI string as defined in the NVM Express Boot Specification. Supported URI elements looks as follows:

nvme+tcp://user*host*:port/subsys\_nqn/nid?query=val#fragment

## RETURN

*nvme\_fabrics\_uri* structure on success; NULL on failure with errno set.
