FreeBSD/sys/dev/isci/scil/scif_sas_task_request_state_handlers.c
/**
 * @brief This method provides DEFAULT handling for when the user
 *        attempts to start the supplied task request.
 *
 * @param[in] task_request This parameter specifies the task request object
 *            to be started.
 *
 * @return This method returns an indication that the start operation is
 *         not allowed.
 * @retval SCI_FAILURE_INVALID_STATE This value is always returned.
 */
@brief This method provides DEFAULT handling for when the user
attempts to start the supplied task request.

@param[in] task_request This parameter specifies the task request object
to be started.

@return This method returns an indication that the start operation is
not allowed.
@retval SCI_FAILURE_INVALID_STATE This value is always returned.
@brief This method provides DEFAULT handling for when the user attempts to start the supplied task request . @param [ in ] task_request This parameter specifies the task request object to be started . @return This method returns an indication that the start operation is not allowed . @retval SCI_FAILURE_INVALID_STATE This value is always returned .
static
SCI_STATUS scif_sas_task_request_default_start_handler(
   SCI_BASE_REQUEST_T * task_request
)
{
   SCIF_LOG_ERROR((
      sci_base_object_get_logger((SCIF_SAS_TASK_REQUEST_T *) task_request),
      SCIF_LOG_OBJECT_TASK_MANAGEMENT,
      "TaskRequest:0x%x State:0x%x invalid state to start\n",
      task_request,
      sci_base_state_machine_get_state(
         &((SCIF_SAS_TASK_REQUEST_T *) task_request)->parent.parent.state_machine)
   ));
   return SCI_FAILURE_INVALID_STATE;
}
static SCI_STATUS scif_sas_task_request_default_start_handler ( SCI_BASE_REQUEST_T * task_request ) { SCIF_LOG_ERROR ( ( sci_base_object_get_logger ( ( SCIF_SAS_TASK_REQUEST_T * ) task_request ) , SCIF_LOG_OBJECT_TASK_MANAGEMENT , " \n " , task_request , sci_base_state_machine_get_state ( & ( ( SCIF_SAS_TASK_REQUEST_T * ) task_request ) -> parent . parent . state_machine ) ) ) ; return SCI_FAILURE_INVALID_STATE ; }
@brief This method provides DEFAULT handling for when the user
        attempts to start the supplied task request.
@brief This method provides DEFAULT handling for when the user attempts to start the supplied task request .