FreeBSD/sys/dev/isci/scil/scif_sas_io_request_state_handlers.c
/**
 * @brief This method provides COMPLETED state specific handling for
 *        when the user attempts to destruct the supplied IO request.
 *
 * @param[in] io_request This parameter specifies the IO request object
 *            to be destructed.
 *
 * @return This method returns a value indicating if the destruct
 *         operation was successful.
 * @retval SCI_SUCCESS This return value indicates that the destruct
 *         was successful.
 */
@brief This method provides COMPLETED state specific handling for
when the user attempts to destruct the supplied IO request.

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

@return This method returns a value indicating if the destruct
operation was successful.
@retval SCI_SUCCESS This return value indicates that the destruct
was successful.
@brief This method provides COMPLETED state specific handling for when the user attempts to destruct the supplied IO request . @param [ in ] io_request This parameter specifies the IO request object to be destructed . @return This method returns a value indicating if the destruct operation was successful . @retval SCI_SUCCESS This return value indicates that the destruct was successful .
static
SCI_STATUS scif_sas_io_request_completed_destruct_handler(
   SCI_BASE_REQUEST_T * io_request
)
{
   sci_base_state_machine_change_state(
      &io_request->state_machine, SCI_BASE_REQUEST_STATE_FINAL
   );
   sci_base_state_machine_logger_deinitialize(
      &io_request->state_machine_logger,
      &io_request->state_machine
   );
   return SCI_SUCCESS;
}
static SCI_STATUS scif_sas_io_request_completed_destruct_handler ( SCI_BASE_REQUEST_T * io_request ) { sci_base_state_machine_change_state ( & io_request -> state_machine , SCI_BASE_REQUEST_STATE_FINAL ) ; sci_base_state_machine_logger_deinitialize ( & io_request -> state_machine_logger , & io_request -> state_machine ) ; return SCI_SUCCESS ; }
@brief This method provides COMPLETED state specific handling for
        when the user attempts to destruct the supplied IO request.
@brief This method provides COMPLETED state specific handling for when the user attempts to destruct the supplied IO request .