DOKK / manpages / debian 12 / libnvme-dev / nvme_lookup_subsystem.2.en
nvme_lookup_subsystem(2) libnvme API manual nvme_lookup_subsystem(2)

nvme_lookup_subsystem - Lookup nvme_subsystem_t object

nvme_subsystem_t nvme_lookup_subsystem (struct nvme_host *h , const char *name , const char *subsysnqn );

nvme_host_t object
Name of the subsystem (may be NULL)
Subsystem NQN

Lookup a nvme_subsystem_t object in h base on name (if present) and subsysnqn or create one if not found.

nvme_subsystem_t object

nvme_lookup_subsystem January 2023