Reference

snd_rawmidi_transmit_empty(9) on Linux

The text 6b36efc78707, as Debian 6.0 (Squeeze) shipped it.

check whether the output buffer is empty

snd_rawmidi_transmit_empty(9) on Linux now