nvme\_init\_get\_log\_smart(9) libnvme API manual nvme\_init\_get\_log\_smart(9)

# [NAME](#NAME)

nvme\_init\_get\_log\_smart - Initialize passthru command for SMART / Health Information

# [SYNOPSIS](#SYNOPSIS)

**void nvme\_init\_get\_log\_smart** **(struct libnvme\_passthru\_cmd \*cmd ,** **\_\_u32 nsid ,** **struct nvme\_smart\_log \*smart\_log );**

# [ARGUMENTS](#ARGUMENTS)

[cmd](#cmd)

Passthru command to use

[nsid](#nsid)

Optional namespace identifier

[smart\_log](#smart_log)

User address to store the smart log

# [DESCRIPTION](#DESCRIPTION)

Initializes the passthru command buffer for the Get Log command with LID value NVME\_LOG\_LID\_SMART.

nvme\_init\_get\_log\_smart October 2026

---

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