---
name: "libnvme_sed_discover-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libnvme_sed_discover-libnvme3"
---

# libnvme\_sed\_discover-libnvme3(2)

Retrieve the TCG Level 0 Discovery data

## NAME

libnvme\_sed\_discover - Retrieve the TCG Level 0 Discovery data

## SYNOPSIS

**int libnvme\_sed\_discover** **(struct libnvme\_transport\_handle \*hdl** *,* **void \*buf** *,* **\_\_u32 len** *);*

## ARGUMENTS

- hdl

  Transport handle

- buf

  Buffer for the Level 0 Discovery data

- len

  Size of *buf* in bytes

## DESCRIPTION

Issues a Security Receive for the Level 0 Discovery ComID. The data is returned unparsed; use **libnvme\_sed\_l0\_for\_each** or **libnvme\_sed\_l0\_find** to walk the feature descriptors.

## RETURN

0 on success, the NVMe command status if a response was received (see *enum nvme\_status\_field*) or a negative error code otherwise.
