libnvmf\_uri\_parse(9) libnvme API manual libnvmf\_uri\_parse(9)

# [NAME](#NAME)

libnvmf\_uri\_parse - Parse the URI string

# [SYNOPSIS](#SYNOPSIS)

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

# [ARGUMENTS](#ARGUMENTS)

[str](#str)

URI string

[uri](#uri)

URI object to return

# [DESCRIPTION](#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](#RETURN)

0 on success, negative error code otherwise.

libnvmf\_uri\_parse September 2026

---

Document: libnvmf_uri_parse-libnvme3(2) from nvme-cli 3.1-r1 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
