---
name: "nvme_lookup_subsystem"
section: "2"
platform: "linux"
package: "libnvme-dev"
version: "1.13-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nvme_lookup_subsystem"
---

# nvme\_lookup\_subsystem(2)

Lookup nvme\_subsystem\_t object

## NAME

nvme\_lookup\_subsystem - Lookup nvme\_subsystem\_t object

## SYNOPSIS

**nvme\_subsystem\_t nvme\_lookup\_subsystem** **(struct nvme\_host \*h** *,* **const char \*name** *,* **const char \*subsysnqn** *);*

## ARGUMENTS

- h

  *nvme\_host\_t* object

- name

  Name of the subsystem (may be NULL)

- subsysnqn

  Subsystem NQN

## DESCRIPTION

Lookup a *nvme\_subsystem\_t* object in *h* base on *name* (if present) and *subsysnqn* or create one if not found.

## RETURN

nvme\_subsystem\_t object
