libnvme\_sed\_discover(9) libnvme API manual libnvme\_sed\_discover(9)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

# [ARGUMENTS](#ARGUMENTS)

[hdl](#hdl)

Transport handle

[buf](#buf)

Buffer for the Level 0 Discovery data

[len](#len)

Size of *buf* in bytes

# [DESCRIPTION](#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](#RETURN)

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

libnvme\_sed\_discover October 2026

---

Document: libnvme_sed_discover-libnvme3(2) from nvme-cli 3.2-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
