]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Using the error return code documented in the comment.
authoravatar <avatar@FreeBSD.org>
Tue, 18 Aug 2015 13:16:06 +0000 (13:16 +0000)
committeravatar <avatar@FreeBSD.org>
Tue, 18 Aug 2015 13:16:06 +0000 (13:16 +0000)
commitc7e27a0c932305b8aa3647cc4169637da15ae448
treeae0230b1cddf8adff06484356266d1bc5cdbd9a4
parent673085faaf549e2bacc3696ea66767b36cbd072d
Using the error return code documented in the comment.

Though there is no direct midi_uninit() caller amongst existing drivers
at this moment, a quick experiment indicates that EBUSY gives users more
precise error message once drivers start to honour this result.  For example,
emu_midi_detach() should check the result of mpu401_uninit() and block
module unloading if there is any MIDI I/O in progress.

MFC after: 2 weeks
sys/dev/sound/midi/midi.c