Reference

snd_rawmidi_transmit(9) on Linux

The text 25ebb236a7ca, as Debian 8 (Jessie) shipped it.

copy from the buffer to the device

snd_rawmidi_transmit(9) on Linux now