FreeBSD/sys/dev/ips/ips_commands.c
/*
 * This is an interrupt callback.  It is called from
 * interrupt context when the adapter has completed the
 * command.  This very generic callback simply stores
 * the command's return value in command->arg and wake's
 * up anyone waiting on the command. 
 */
This is an interrupt callback.  It is called from
interrupt context when the adapter has completed the
command.  This very generic callback simply stores
the command's return value in command->arg and wake's
up anyone waiting on the command.
This is an interrupt callback . It is called from interrupt context when the adapter has completed the command . This very generic callback simply stores the command ' s return value in command - > arg and wake ' s up anyone waiting on the command .
static void ips_wakeup_callback(ips_command_t *command)
{
	bus_dmamap_sync(command->sc->command_dmatag, command->command_dmamap, 
			BUS_DMASYNC_POSTWRITE);
	sema_post(&command->sc->cmd_sema);
}
static void ips_wakeup_callback ( ips_command_t * command ) { bus_dmamap_sync ( command -> sc -> command_dmatag , command -> command_dmamap , BUS_DMASYNC_POSTWRITE ) ; sema_post ( & command -> sc -> cmd_sema ) ; }
This is an interrupt callback.
This is an interrupt callback .