Module Name: src Committed By: pooka Date: Fri May 22 08:34:15 UTC 2009
Modified Files: src/sys/rump/include/rump: rump.h src/sys/rump/librump/rumpkern: rump.c Log Message: Add rump_getversion(), which returns the version of NetBSD for the rump kernel. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/sys/rump/include/rump/rump.h cvs rdiff -u -r1.108 -r1.109 src/sys/rump/librump/rumpkern/rump.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/include/rump/rump.h diff -u src/sys/rump/include/rump/rump.h:1.18 src/sys/rump/include/rump/rump.h:1.19 --- src/sys/rump/include/rump/rump.h:1.18 Thu May 7 16:04:25 2009 +++ src/sys/rump/include/rump/rump.h Fri May 22 08:34:14 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: rump.h,v 1.18 2009/05/07 16:04:25 pooka Exp $ */ +/* $NetBSD: rump.h,v 1.19 2009/05/22 08:34:14 pooka Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -75,6 +75,8 @@ int rump_module_fini(struct modinfo *); int rump__init(int); +int rump_getversion(void); + struct mount *rump_mnt_init(struct vfsops *, int); int rump_mnt_mount(struct mount *, const char *, void *, size_t *); void rump_mnt_destroy(struct mount *); Index: src/sys/rump/librump/rumpkern/rump.c diff -u src/sys/rump/librump/rumpkern/rump.c:1.108 src/sys/rump/librump/rumpkern/rump.c:1.109 --- src/sys/rump/librump/rumpkern/rump.c:1.108 Thu May 7 16:04:25 2009 +++ src/sys/rump/librump/rumpkern/rump.c Fri May 22 08:34:15 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: rump.c,v 1.108 2009/05/07 16:04:25 pooka Exp $ */ +/* $NetBSD: rump.c,v 1.109 2009/05/22 08:34:15 pooka Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.108 2009/05/07 16:04:25 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.109 2009/05/22 08:34:15 pooka Exp $"); #include <sys/param.h> #include <sys/atomic.h> @@ -553,3 +553,10 @@ return 0; } + +int +rump_getversion() +{ + + return __NetBSD_Version__; +}