libnvme\_get\_log(9) libnvme API manual libnvme\_get\_log(9)

# [NAME](#NAME)

libnvme\_get\_log - Get log page data

# [SYNOPSIS](#SYNOPSIS)

**int libnvme\_get\_log** **(struct libnvme\_transport\_handle \*hdl ,** **struct libnvme\_passthru\_cmd \*cmd ,** **bool rae ,** **\_\_u32 xfer\_len );**

# [ARGUMENTS](#ARGUMENTS)

[hdl](#hdl)

Transport handle

[cmd](#cmd)

Passthru command

[rae](#rae)

Retain asynchronous events

[xfer\_len](#xfer_len)

Max log transfer size per request to split the total.

# [RETURN](#RETURN)

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

libnvme\_get\_log October 2026

---

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