FreeBSD/sys/dev/mrsas/mrsas.c
/*
 * mrsas_complete_abort:      Completes aborting a command input:
 * Adapter soft state Cmd that was issued to abort another cmd
 *
 * The mrsas_issue_blocked_abort_cmd() function waits for the command status to
 * change after sending the command.  This function is called from
 * mrsas_complete_mptmfi_passthru() to wake up the sleep thread associated.
 */
Completes aborting a command input:
Adapter soft state Cmd that was issued to abort another cmd

The mrsas_issue_blocked_abort_cmd() function waits for the command status to
change after sending the command.  This function is called from
mrsas_complete_mptmfi_passthru() to wake up the sleep thread associated.
Completes aborting a command input : Adapter soft state Cmd that was issued to abort another cmd The mrsas_issue_blocked_abort_cmd () function waits for the command status to change after sending the command . This function is called from mrsas_complete_mptmfi_passthru () to wake up the sleep thread associated .
void
mrsas_complete_abort(struct mrsas_softc *sc, struct mrsas_mfi_cmd *cmd)
{
	if (cmd->sync_cmd) {
		cmd->sync_cmd = 0;
		cmd->cmd_status = 0;
		sc->chan = (void *)&cmd;
		wakeup_one((void *)&sc->chan);
	}
	return;
}
void mrsas_complete_abort ( struct mrsas_softc * sc , struct mrsas_mfi_cmd * cmd ) { if ( cmd -> sync_cmd ) { cmd -> sync_cmd = 0 ; cmd -> cmd_status = 0 ; sc -> chan = ( void * ) & cmd ; wakeup_one ( ( void * ) & sc -> chan ) ; } return ; }
mrsas_complete_abort:      Completes aborting a command input:
 Adapter soft state Cmd that was issued to abort another cmd
mrsas_complete_abort : Completes aborting a command input : Adapter soft state Cmd that was issued to abort another cmd