libxnvme_ident.h#

Structs#

xnvme_ident#

struct xnvme_ident#

Representation of device identifiers once decoded from text-representation.

Public Members

char subnqn[256]#
char uri[XNVME_IDENT_URI_LEN]#
uint32_t dtype#
uint32_t nsid#
uint8_t csi#
uint8_t rsvd[55]#

Functions#

xnvme_ident_from_uri#

int xnvme_ident_from_uri(const char *uri, struct xnvme_ident *ident)#

Parse the given ‘uri’ into xnvme_ident.

Parameters:
  • uri

  • ident – Pointer to ident to fill with values parsed from ‘uri’

Returns:

On success, 0 is returned. On error, negative errno is returned.