]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r286887: Using the error return code documented in the comment.
authoravatar <avatar@FreeBSD.org>
Tue, 1 Sep 2015 22:35:53 +0000 (22:35 +0000)
committeravatar <avatar@FreeBSD.org>
Tue, 1 Sep 2015 22:35:53 +0000 (22:35 +0000)
commit49c820db709f5b2a0ac43ec2b24a3223ee1686fd
tree2dc7e29cab1f595ba965010669afe5d6eea17f3c
parent2fa34e5809264269064cfede258aced90aee2795
MFC r286887: 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.
sys/dev/sound/midi/midi.c