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

# nvmf\_connect\_disc\_entry(2)

Connect controller based on the discovery log page entry

## NAME

nvmf\_connect\_disc\_entry - Connect controller based on the discovery log page entry

## SYNOPSIS

**nvme\_ctrl\_t nvmf\_connect\_disc\_entry** **(nvme\_host\_t h** *,* **struct nvmf\_disc\_log\_entry \*e** *,* **const struct nvme\_fabrics\_config \*defcfg** *,* **bool \*discover** *);*

## ARGUMENTS

- h

  Host to which the controller should be connected

- e

  Discovery log page entry

- defcfg

  Default configuration to be used for the new controller

- discover

  Set to 'true' if the new controller is a discovery controller

## RETURN

Pointer to the new controller
