Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpdev add address space specifiers to do_...



details:   https://anonhg.NetBSD.org/src/rev/42913fbdce90
branches:  trunk
changeset: 747107:42913fbdce90
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Sep 02 16:55:07 2009 +0000

description:
add address space specifiers to do_sys_mk{dir,nod} calls

diffstat:

 sys/rump/librump/rumpdev/devnodes.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r 254676dff8d6 -r 42913fbdce90 sys/rump/librump/rumpdev/devnodes.c
--- a/sys/rump/librump/rumpdev/devnodes.c       Wed Sep 02 16:38:17 2009 +0000
+++ b/sys/rump/librump/rumpdev/devnodes.c       Wed Sep 02 16:55:07 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: devnodes.c,v 1.1 2009/07/20 18:04:13 pooka Exp $       */
+/*     $NetBSD: devnodes.c,v 1.2 2009/09/02 16:55:07 pooka Exp $       */
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -26,10 +26,11 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: devnodes.c,v 1.1 2009/07/20 18:04:13 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: devnodes.c,v 1.2 2009/09/02 16:55:07 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
+#include <sys/filedesc.h>
 #include <sys/kmem.h>
 #include <sys/stat.h>
 #include <sys/vfs_syscalls.h>
@@ -46,7 +47,7 @@
        size_t devlen;
        register_t retval;
 
-       error = do_sys_mkdir("/dev", 0777);
+       error = do_sys_mkdir("/dev", 0777, UIO_SYSSPACE);
        if (error != 0 && error != EEXIST)
                return error;
 
@@ -61,7 +62,7 @@
                *p = minchar;
 
                if ((error = do_sys_mknod(curlwp, devname, 0666 | devtype,
-                   makedev(maj, minnum), &retval)))
+                   makedev(maj, minnum), &retval, UIO_SYSSPACE)))
                        goto out;
        }
 



Home | Main Index | Thread Index | Old Index