The dmi_error_peek_first function returns a pointer to the oldest error
descriptor in the error queue of context without removing it. The queue is
not modified.
Parameters
context
DMI context.
Return value
Returns a pointer to the oldest dmi_error_t in the queue, or nullptr if
context is nullptr or the error queue is empty.