FreeBSD/sys/dev/isci/scil/scic_sds_remote_node_context.c
/**
* This method will setup the remote node context object so it will transition
* to its ready state.  If the remote node context is already setup to
* transition to its final state then this function does nothing.
*
* @param[in] this_rnc
* @param[in] the_callback
* @param[in] callback_parameter
*
* @return none
*/
This method will setup the remote node context object so it will transition
to its ready state.  If the remote node context is already setup to
transition to its final state then this function does nothing.
This method will setup the remote node context object so it will transition to its ready state . If the remote node context is already setup to transition to its final state then this function does nothing .
static
void scic_sds_remote_node_context_setup_to_resume(
   SCIC_SDS_REMOTE_NODE_CONTEXT_T         * this_rnc,
   SCIC_SDS_REMOTE_NODE_CONTEXT_CALLBACK   the_callback,
   void                                   * callback_parameter
)
{
   if (this_rnc->destination_state != SCIC_SDS_REMOTE_NODE_DESTINATION_STATE_FINAL)
   {
      this_rnc->destination_state = SCIC_SDS_REMOTE_NODE_DESTINATION_STATE_READY;
      this_rnc->user_callback     = the_callback;
      this_rnc->user_cookie       = callback_parameter;
   }
}
static void scic_sds_remote_node_context_setup_to_resume ( SCIC_SDS_REMOTE_NODE_CONTEXT_T * this_rnc , SCIC_SDS_REMOTE_NODE_CONTEXT_CALLBACK the_callback , void * callback_parameter ) { if ( this_rnc -> destination_state != SCIC_SDS_REMOTE_NODE_DESTINATION_STATE_FINAL ) { this_rnc -> destination_state = SCIC_SDS_REMOTE_NODE_DESTINATION_STATE_READY ; this_rnc -> user_callback = the_callback ; this_rnc -> user_cookie = callback_parameter ; } }
This method will setup the remote node context object so it will transition
to its ready state.
This method will setup the remote node context object so it will transition to its ready state .