---
name: "libnvmf_uri_parse-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libnvmf_uri_parse-libnvme3"
---

# libnvmf\_uri\_parse-libnvme3(2)

Parse the URI string

## NAME

libnvmf\_uri\_parse - Parse the URI string

## SYNOPSIS

**int libnvmf\_uri\_parse** **(const char \*str** *,* **struct libnvmf\_uri \*\*uri** *);*

## ARGUMENTS

- str

  URI string

- uri

  URI object to return

## 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

0 on success, negative error code otherwise.
