Add rump_getversion(), which returns the version of NetBSD for the
rump kernel.
This commit is contained in:
parent
908a0b2534
commit
ac42a021b0
@ -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_init(struct modinfo *, prop_dictionary_t props);
|
||||
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 *);
|
||||
|
@ -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 @@ rump_sysproxy_set(rump_sysproxy_t proxy, void *arg)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
rump_getversion()
|
||||
{
|
||||
|
||||
return __NetBSD_Version__;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user