DOKK / manpages / debian 12 / libnvme-dev / nvme_get_new_host_telemetry.2.en
nvme_get_new_host_telemetry(2) libnvme API manual nvme_get_new_host_telemetry(2)

nvme_get_new_host_telemetry - Get new host telemetry log

int nvme_get_new_host_telemetry (int fd , struct nvme_telemetry_log **log , enum nvme_telemetry_da da , size_t *size );

File descriptor of nvme device
On success, set to the value of the allocated and retrieved log.
Log page data area, valid values: enum nvme_telemetry_da
Ptr to the telemetry log size, so it can be returned

The total size allocated can be calculated as: (nvme_telemetry_log da size + 1) * NVME_LOG_TELEM_BLOCK_SIZE.

The nvme command status if a response was received (see enum nvme_status_field) or -1 with errno set otherwise.

nvme_get_new_host_telemetry January 2023