Reference

snd_rawmidi_transmit_empty(9) on Linux

The text 0da51b4b9649, as Debian 4.0 (Etch) shipped it.

check whether the output buffer is empty

snd_rawmidi_transmit_empty(9) on Linux now