pub unsafe extern "C" fn vTaskGetSnapshot(
    pxTask: TaskHandle_t,
    pxTaskSnapshot: *mut TaskSnapshot_t
) -> BaseType_t
Expand description

@brief Fill a TaskSnapshot_t structure for specified task.

  • This function is used by the panic handler to get the snapshot of a particular task.
  • This function is only available when CONFIG_FREERTOS_ENABLE_TASK_SNAPSHOT is set to 1.

@note This function should only be called when FreeRTOS is no longer running (e.g., during a panic) as this function does not acquire any locks. @param[in] pxTask Task’s handle @param[out] pxTaskSnapshot Snapshot of the task @return pdTRUE if operation was successful else pdFALSE