Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/dev/lib/libaudio create /dev/{audio, sound, mixer, aud...



details:   https://anonhg.NetBSD.org/src/rev/3374703f2e4b
branches:  trunk
changeset: 338787:3374703f2e4b
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Jun 08 12:18:04 2015 +0000

description:
create /dev/{audio,sound,mixer,audioctl} -> foo0 symlinks

from Robert Millan <rmh%freebsd.org@localhost> via rumpkernel-users

diffstat:

 sys/rump/dev/lib/libaudio/audio_component.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r cc24ca222f51 -r 3374703f2e4b sys/rump/dev/lib/libaudio/audio_component.c
--- a/sys/rump/dev/lib/libaudio/audio_component.c       Mon Jun 08 12:16:47 2015 +0000
+++ b/sys/rump/dev/lib/libaudio/audio_component.c       Mon Jun 08 12:18:04 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio_component.c,v 1.1 2014/03/13 01:57:52 pooka Exp $        */
+/*     $NetBSD: audio_component.c,v 1.2 2015/06/08 12:18:04 pooka Exp $        */
 
 /*
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio_component.c,v 1.1 2014/03/13 01:57:52 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio_component.c,v 1.2 2015/06/08 12:18:04 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -57,13 +57,21 @@
        if ((error = rump_vfs_makedevnodes(S_IFCHR, "/dev/audio", '0',
            cmaj, AUDIO_DEVICE, 4)) !=0)
                panic("cannot create audio device nodes: %d", error);
+       if ((error = rump_vfs_makesymlink("audio0", "/dev/audio")) != 0)
+               panic("cannot create audio symlink: %d", error);
        if ((error = rump_vfs_makedevnodes(S_IFCHR, "/dev/sound", '0',
            cmaj, SOUND_DEVICE, 4)) !=0)
                panic("cannot create sound device nodes: %d", error);
+       if ((error = rump_vfs_makesymlink("sound0", "/dev/sound")) != 0)
+               panic("cannot create sound symlink: %d", error);
        if ((error = rump_vfs_makedevnodes(S_IFCHR, "/dev/audioctl", '0',
            cmaj, AUDIOCTL_DEVICE, 4)) !=0)
                panic("cannot create audioctl device nodes: %d", error);
+       if ((error = rump_vfs_makesymlink("audioctl0", "/dev/audioctl")) != 0)
+               panic("cannot create audioctl symlink: %d", error);
        if ((error = rump_vfs_makedevnodes(S_IFCHR, "/dev/mixer", '0',
            cmaj, MIXER_DEVICE, 4)) !=0)
                panic("cannot create mixer device nodes: %d", error);
+       if ((error = rump_vfs_makesymlink("mixer0", "/dev/mixer")) != 0)
+               panic("cannot create mixer symlink: %d", error);
 }



Home | Main Index | Thread Index | Old Index