Module Name:    src
Committed By:   pooka
Date:           Mon Apr 26 23:43:36 UTC 2010

Modified Files:
        src/sys/rump/librump/rumpvfs: rump_vfs.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/rump/librump/rumpvfs/rump_vfs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/librump/rumpvfs/rump_vfs.c
diff -u src/sys/rump/librump/rumpvfs/rump_vfs.c:1.46 src/sys/rump/librump/rumpvfs/rump_vfs.c:1.47
--- src/sys/rump/librump/rumpvfs/rump_vfs.c:1.46	Wed Apr 21 16:51:24 2010
+++ src/sys/rump/librump/rumpvfs/rump_vfs.c	Mon Apr 26 23:43:36 2010
@@ -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);
 }
 

Reply via email to