'\" t .\" Title: snd_rawmidi_transmit_peek .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Sound Devices .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "SND_RAWMIDI_TRANSMIT" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Sound Devices" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" snd_rawmidi_transmit_peek \- copy data from the internal buffer .SH "SYNOPSIS" .HP \w'int\ snd_rawmidi_transmit_peek('u .BI "int snd_rawmidi_transmit_peek(struct\ snd_rawmidi_substream\ *\ " "substream" ", unsigned\ char\ *\ " "buffer" ", int\ " "count" ");" .SH "ARGUMENTS" .PP \fIsubstream\fR .RS 4 the rawmidi substream .RE .PP \fIbuffer\fR .RS 4 the buffer pointer .RE .PP \fIcount\fR .RS 4 data size to transfer .RE .SH "DESCRIPTION" .PP Copies data from the internal output buffer to the given buffer\&. .PP Call this in the interrupt handler when the midi output is ready, and call \fBsnd_rawmidi_transmit_ack\fR after the transmission is finished\&. .SH "RETURN" .PP The size of copied data, or a negative error code on failure\&. .SH "COPYRIGHT" .br