cmd_flush aborts (calls abortio() ) all cmd_write and all adcmd_waitcycles that are queued up for the channel or channels. It does not abort adcmd_locks (only adcmd_free clears locks).