FreeBSD/sys/dev/isci/scil/scif_sas_remote_device_state_handlers.c
/**
 * @brief This method provides FAILED state specific handling for
 *        when the remote device is being stopped by the framework.
 *
 * @param[in]  remote_device This parameter specifies the remote device
 *             object for which the stop operation is being requested.
 *
 * @return This method returns an indication as to whether the failure
 *         operation completed successfully.
 */
@brief This method provides FAILED state specific handling for
when the remote device is being stopped by the framework.

@param[in]  remote_device This parameter specifies the remote device
object for which the stop operation is being requested.

@return This method returns an indication as to whether the failure
operation completed successfully.
@brief This method provides FAILED state specific handling for when the remote device is being stopped by the framework . @param [ in ] remote_device This parameter specifies the remote device object for which the stop operation is being requested . @return This method returns an indication as to whether the failure operation completed successfully .
static
SCI_STATUS scif_sas_remote_device_failed_stop_handler(
   SCI_BASE_REMOTE_DEVICE_T * remote_device
)
{
   SCIF_SAS_REMOTE_DEVICE_T * fw_device = (SCIF_SAS_REMOTE_DEVICE_T *)
                                          remote_device;
   SCIF_LOG_WARNING((
      sci_base_object_get_logger(fw_device),
      SCIF_LOG_OBJECT_REMOTE_DEVICE,
      "RemoteDevice:0x%x stopping failed device\n",
      fw_device
   ));
   sci_base_state_machine_change_state(
      &fw_device->parent.state_machine, SCI_BASE_REMOTE_DEVICE_STATE_STOPPING
   );
   return SCI_FAILURE;
}
static SCI_STATUS scif_sas_remote_device_failed_stop_handler ( SCI_BASE_REMOTE_DEVICE_T * remote_device ) { SCIF_SAS_REMOTE_DEVICE_T * fw_device = ( SCIF_SAS_REMOTE_DEVICE_T * ) remote_device ; SCIF_LOG_WARNING ( ( sci_base_object_get_logger ( fw_device ) , SCIF_LOG_OBJECT_REMOTE_DEVICE , " \n " , fw_device ) ) ; sci_base_state_machine_change_state ( & fw_device -> parent . state_machine , SCI_BASE_REMOTE_DEVICE_STATE_STOPPING ) ; return SCI_FAILURE ; }
@brief This method provides FAILED state specific handling for
        when the remote device is being stopped by the framework.
@brief This method provides FAILED state specific handling for when the remote device is being stopped by the framework .
/// @todo Fix the return code handling.