Scroll to navigation

nvme_get_telemetry_log(2) libnvme API manual nvme_get_telemetry_log(2)

NAME

nvme_get_telemetry_log - Get specified telemetry log

SYNOPSIS

int nvme_get_telemetry_log (int fd , bool create , bool ctrl , bool rae , size_t max_data_tx , enum nvme_telemetry_da da , struct nvme_telemetry_log **log , size_t *size );

ARGUMENTS

File descriptor of nvme device
Generate new host initated telemetry capture
Get controller Initiated log
Retain asynchronous events
Set the max data transfer size to be used retrieving telemetry.
Log page data area, valid values: enum nvme_telemetry_da.
On success, set to the value of the allocated and retrieved log.
Ptr to the telemetry log size, so it can be returned

DESCRIPTION

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

RETURN

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

nvme_get_telemetry_log August 2024