Reference

snd_rawmidi_transmit_empty(9) on Linux

The text 71fd9d636841, as Debian 7 (Wheezy) shipped it.

check whether the output buffer is empty

snd_rawmidi_transmit_empty(9) on Linux now