nvme_init_get_log_error(9) libnvme API manual nvme_init_get_log_error(9)

nvme_init_get_log_error - Initialize passthru command for Error Information

void nvme_init_get_log_error (struct libnvme_passthru_cmd *cmd , unsigned int nr_entries , struct nvme_error_log_page *err_log );

Passthru command to use
Number of error log entries allocated
Array of error logs of size 'entries'

Initializes the passthru command buffer for the Get Log command with LID value NVME_LOG_LID_ERROR.

nvme_init_get_log_error October 2026