Skip to main content

nvme_parse_uri

Function nvme_parse_uri 

Source
pub unsafe extern "C" fn nvme_parse_uri(
    str_: *const c_char,
) -> *mut nvme_fabrics_uri
Expand description

nvme_parse_uri() - Parse the URI string @str: URI string

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.