libnvme_get_subsystem(9)

NAME
libnvme_get_subsystem - Returns libnvme_subsystem_t 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   libnvme_host_t object

name
    Name of the subsystem (may be NULL)

subsysnqn
    Subsystem NQN

s   libnvme_subsystem_t object

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