FreeBSD/sys/dev/isci/scil/scif_sas_io_request_state_handlers.c
/**
 * @brief This method provides DEFAULT handling for when the user
 *        attempts to complete the supplied IO request.
 *
 * @param[in] io_request This parameter specifies the IO request object
 *            to be completed.
 *
 * @return This method returns an indication that complete 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 complete the supplied IO request.

@param[in] io_request This parameter specifies the IO request object
to be completed.

@return This method returns an indication that complete 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 complete the supplied IO request . @param [ in ] io_request This parameter specifies the IO request object to be completed . @return This method returns an indication that complete operation is not allowed . @retval SCI_FAILURE_INVALID_STATE This value is always returned .
SCI_STATUS scif_sas_io_request_default_complete_handler(
   SCI_BASE_REQUEST_T * io_request
)
{
   SCIF_LOG_ERROR((
      sci_base_object_get_logger((SCIF_SAS_IO_REQUEST_T *) io_request),
      SCIF_LOG_OBJECT_IO_REQUEST,
      "IoRequest:0x%x State:0x%x invalid state to complete\n",
      io_request,
      sci_base_state_machine_get_state(
         &((SCIF_SAS_IO_REQUEST_T *) io_request)->parent.parent.state_machine)
   ));
   return SCI_FAILURE_INVALID_STATE;
}
SCI_STATUS scif_sas_io_request_default_complete_handler ( SCI_BASE_REQUEST_T * io_request ) { SCIF_LOG_ERROR ( ( sci_base_object_get_logger ( ( SCIF_SAS_IO_REQUEST_T * ) io_request ) , SCIF_LOG_OBJECT_IO_REQUEST , " \n " , io_request , sci_base_state_machine_get_state ( & ( ( SCIF_SAS_IO_REQUEST_T * ) io_request ) -> parent . parent . state_machine ) ) ) ; return SCI_FAILURE_INVALID_STATE ; }
@brief This method provides DEFAULT handling for when the user
        attempts to complete the supplied IO request.
@brief This method provides DEFAULT handling for when the user attempts to complete the supplied IO request .