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

# nvme\_ctrl\_set\_discovery\_ctrl(2)

Set the 'discovery\_ctrl' flag

## NAME

nvme\_ctrl\_set\_discovery\_ctrl - Set the 'discovery\_ctrl' flag

## SYNOPSIS

**void nvme\_ctrl\_set\_discovery\_ctrl** **(nvme\_ctrl\_t c** *,* **bool discovery** *);*

## ARGUMENTS

- c

  Controller to be modified

- discovery

  value of the discovery\_ctrl flag

## DESCRIPTION

Sets the 'discovery\_ctrl' flag in *c* to specify whether *c* connects to a discovery subsystem.
