Reference

snd_rawmidi_transmit_empty(9) on Linux

The text 3bc54e3217aa, as Debian 5.0 (Lenny) shipped it.

check whether the output buffer is empty

snd_rawmidi_transmit_empty(9) on Linux now