libnvme_get_subsystem(9)

NAME
libnvme_get_subsystem - Returns struct libnvme_subsystem object

SYNOPSIS
int libnvme_get_subsystem (struct libnvme_global_ctx *ctx , struct libnvme_host *h , const char *name , const char *subsysnqn , struct libnvme_subsystem **s );

ARGUMENTS

ctx struct libnvme_global_ctx object

h   struct libnvme_host object

name
    Name of the subsystem (may be NULL)

subsysnqn
    Subsystem NQN

s   struct libnvme_subsystem object

DESCRIPTION
Returns an struct libnvme_subsystem object in h base on name (if present) and subsysnqn or create one if not found.