Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpvfs Register module_base as an etfs rec...



details:   https://anonhg.NetBSD.org/src/rev/500851da06d8
branches:  trunk
changeset: 754300:500851da06d8
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Apr 26 23:43:36 2010 +0000

description:
Register module_base as an etfs recursive subdirectory.  This means
that rump will autoload kernel modules from the host
/stand/arch/vers/modules directory.

diffstat:

 sys/rump/librump/rumpvfs/rump_vfs.c |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 1b73166f9453 -r 500851da06d8 sys/rump/librump/rumpvfs/rump_vfs.c
--- a/sys/rump/librump/rumpvfs/rump_vfs.c       Mon Apr 26 23:40:22 2010 +0000
+++ b/sys/rump/librump/rumpvfs/rump_vfs.c       Mon Apr 26 23:43:36 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump_vfs.c,v 1.46 2010/04/21 16:51:24 pooka Exp $      */
+/*     $NetBSD: rump_vfs.c,v 1.47 2010/04/26 23:43:36 pooka Exp $      */
 
 /*
  * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.46 2010/04/21 16:51:24 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.47 2010/04/26 23:43:36 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/buf.h>
@@ -135,6 +135,15 @@
                syncdelay = 0;
        }
 
+       /*
+        * On archs where the native kernel ABI is supported, map
+        * host module directory to rump.  This means that kernel
+        * modules from the host will be autoloaded to rump kernels.
+        */
+#ifdef _RUMP_NATIVE_ABI
+       rump_etfs_register(module_base, module_base, RUMP_ETFS_DIR_SUBDIRS);
+#endif
+
        module_init_class(MODULE_CLASS_VFS);
 }
 



Home | Main Index | Thread Index | Old Index