Source-Changes-HG archive

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

[src/trunk]: src/sys/rump generate rump local interfaces



details:   https://anonhg.NetBSD.org/src/rev/5666d88c20f5
branches:  trunk
changeset: 748119:5666d88c20f5
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Oct 14 17:28:13 2009 +0000

description:
generate rump local interfaces

diffstat:

 sys/rump/include/rump/rumpkern_if_pub.h          |   27 +
 sys/rump/include/rump/rumpnet_if_pub.h           |    9 +
 sys/rump/include/rump/rumpvfs_if_pub.h           |   42 ++
 sys/rump/librump/rumpkern/rumpkern_if_priv.h     |   27 +
 sys/rump/librump/rumpkern/rumpkern_if_wrappers.c |  201 ++++++++++++++
 sys/rump/librump/rumpnet/rumpnet_if_priv.h       |    9 +
 sys/rump/librump/rumpnet/rumpnet_if_wrappers.c   |   34 ++
 sys/rump/librump/rumpvfs/rumpvfs_if_priv.h       |   42 ++
 sys/rump/librump/rumpvfs/rumpvfs_if_wrappers.c   |  325 +++++++++++++++++++++++
 9 files changed, 716 insertions(+), 0 deletions(-)

diffs (truncated from 752 to 300 lines):

diff -r 6827a4bf67b0 -r 5666d88c20f5 sys/rump/include/rump/rumpkern_if_pub.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/include/rump/rumpkern_if_pub.h   Wed Oct 14 17:28:13 2009 +0000
@@ -0,0 +1,27 @@
+/*     $NetBSD: rumpkern_if_pub.h,v 1.1 2009/10/14 17:28:13 pooka Exp $        */
+
+/*
+ * Automatically generated.  DO NOT EDIT.
+ * from: NetBSD: rumpkern.ifspec,v 1.1 2009/10/14 17:17:00 pooka Exp 
+ * by:   NetBSD: makerumpif.sh,v 1.2 2009/10/14 17:26:09 pooka Exp 
+ */
+
+void rump_reboot(int);
+int rump_getversion(void);
+int rump_module_init(struct modinfo *, prop_dictionary_t);
+int rump_module_fini(struct modinfo *);
+struct uio * rump_uio_setup(void *, size_t, off_t, enum rump_uiorw);
+size_t rump_uio_getresid(struct uio *);
+off_t rump_uio_getoff(struct uio *);
+size_t rump_uio_free(struct uio *);
+kauth_cred_t rump_cred_create(uid_t, gid_t, size_t, gid_t *);
+kauth_cred_t rump_cred_suserget(void);
+void rump_cred_put(kauth_cred_t);
+struct lwp * rump_newproc_switch(void);
+struct lwp * rump_setup_curlwp(pid_t, lwpid_t, int);
+struct lwp * rump_get_curlwp(void);
+void rump_set_curlwp(struct lwp *);
+void rump_clear_curlwp(void);
+int rump_sysproxy_set(rump_sysproxy_t, void *);
+int rump_sysproxy_socket_setup_client(int);
+int rump_sysproxy_socket_setup_server(int);
diff -r 6827a4bf67b0 -r 5666d88c20f5 sys/rump/include/rump/rumpnet_if_pub.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/include/rump/rumpnet_if_pub.h    Wed Oct 14 17:28:13 2009 +0000
@@ -0,0 +1,9 @@
+/*     $NetBSD: rumpnet_if_pub.h,v 1.1 2009/10/14 17:28:13 pooka Exp $ */
+
+/*
+ * Automatically generated.  DO NOT EDIT.
+ * from: NetBSD: rumpnet.ifspec,v 1.1 2009/10/14 17:17:00 pooka Exp 
+ * by:   NetBSD: makerumpif.sh,v 1.2 2009/10/14 17:26:09 pooka Exp 
+ */
+
+int rump_virtif_create(int);
diff -r 6827a4bf67b0 -r 5666d88c20f5 sys/rump/include/rump/rumpvfs_if_pub.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/include/rump/rumpvfs_if_pub.h    Wed Oct 14 17:28:13 2009 +0000
@@ -0,0 +1,42 @@
+/*     $NetBSD: rumpvfs_if_pub.h,v 1.1 2009/10/14 17:28:13 pooka Exp $ */
+
+/*
+ * Automatically generated.  DO NOT EDIT.
+ * from: NetBSD: rumpvfs.ifspec,v 1.1 2009/10/14 17:17:00 pooka Exp 
+ * by:   NetBSD: makerumpif.sh,v 1.2 2009/10/14 17:26:09 pooka Exp 
+ */
+
+void rump_getvninfo(struct vnode *, enum vtype *, off_t *, dev_t *);
+struct vfsops * rump_vfslist_iterate(struct vfsops *);
+struct vfsops * rump_vfs_getopsbyname(const char *);
+struct vattr * rump_vattr_init(void);
+void rump_vattr_settype(struct vattr *, enum vtype);
+void rump_vattr_setmode(struct vattr *, mode_t);
+void rump_vattr_setrdev(struct vattr *, dev_t);
+void rump_vattr_free(struct vattr *);
+void rump_vp_incref(struct vnode *);
+int rump_vp_getref(struct vnode *);
+void rump_vp_rele(struct vnode *);
+void rump_vp_interlock(struct vnode *);
+int rump_etfs_register(const char *, const char *, enum rump_etfs_type);
+int rump_etfs_register_withsize(const char *, const char *, enum rump_etfs_type, uint64_t, uint64_t);
+int rump_etfs_remove(const char *);
+void rump_freecn(struct componentname *, int);
+int rump_checksavecn(struct componentname *);
+int rump_namei(uint32_t, uint32_t, const char *, struct vnode **, struct vnode **, struct componentname **);
+struct componentname * rump_makecn(u_long, u_long, const char *, size_t, kauth_cred_t, struct lwp *);
+int rump_vfs_unmount(struct mount *, int);
+int rump_vfs_root(struct mount *, struct vnode **, int);
+int rump_vfs_statvfs(struct mount *, struct statvfs *);
+int rump_vfs_sync(struct mount *, int, kauth_cred_t);
+int rump_vfs_fhtovp(struct mount *, struct fid *, struct vnode **);
+int rump_vfs_vptofh(struct vnode *, struct fid *, size_t *);
+void rump_vfs_syncwait(struct mount *);
+int rump_vfs_getmp(const char *, struct mount **);
+void rump_rcvp_set(struct vnode *, struct vnode *);
+struct vnode * rump_cdir_get(void);
+int rump_syspuffs_glueinit(int, int *);
+int rump_sys___stat30(const char *, struct stat *);
+int rump_sys___lstat30(const char *, struct stat *);
+void rump_vattr50_to_vattr(const struct vattr *, struct vattr *);
+void rump_vattr_to_vattr50(const struct vattr *, struct vattr *);
diff -r 6827a4bf67b0 -r 5666d88c20f5 sys/rump/librump/rumpkern/rumpkern_if_priv.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/librump/rumpkern/rumpkern_if_priv.h      Wed Oct 14 17:28:13 2009 +0000
@@ -0,0 +1,27 @@
+/*     $NetBSD: rumpkern_if_priv.h,v 1.1 2009/10/14 17:28:14 pooka Exp $       */
+
+/*
+ * Automatically generated.  DO NOT EDIT.
+ * from: NetBSD: rumpkern.ifspec,v 1.1 2009/10/14 17:17:00 pooka Exp 
+ * by:   NetBSD: makerumpif.sh,v 1.2 2009/10/14 17:26:09 pooka Exp 
+ */
+
+void rumppriv_reboot(int);
+int rumppriv_getversion(void);
+int rumppriv_module_init(struct modinfo *, prop_dictionary_t);
+int rumppriv_module_fini(struct modinfo *);
+struct uio * rumppriv_uio_setup(void *, size_t, off_t, enum rump_uiorw);
+size_t rumppriv_uio_getresid(struct uio *);
+off_t rumppriv_uio_getoff(struct uio *);
+size_t rumppriv_uio_free(struct uio *);
+kauth_cred_t rumppriv_cred_create(uid_t, gid_t, size_t, gid_t *);
+kauth_cred_t rumppriv_cred_suserget(void);
+void rumppriv_cred_put(kauth_cred_t);
+struct lwp * rumppriv_newproc_switch(void);
+struct lwp * rumppriv_setup_curlwp(pid_t, lwpid_t, int);
+struct lwp * rumppriv_get_curlwp(void);
+void rumppriv_set_curlwp(struct lwp *);
+void rumppriv_clear_curlwp(void);
+int rumppriv_sysproxy_set(rump_sysproxy_t, void *);
+int rumppriv_sysproxy_socket_setup_client(int);
+int rumppriv_sysproxy_socket_setup_server(int);
diff -r 6827a4bf67b0 -r 5666d88c20f5 sys/rump/librump/rumpkern/rumpkern_if_wrappers.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/librump/rumpkern/rumpkern_if_wrappers.c  Wed Oct 14 17:28:13 2009 +0000
@@ -0,0 +1,201 @@
+/*     $NetBSD: rumpkern_if_wrappers.c,v 1.1 2009/10/14 17:28:14 pooka Exp $   */
+
+/*
+ * Automatically generated.  DO NOT EDIT.
+ * from: NetBSD: rumpkern.ifspec,v 1.1 2009/10/14 17:17:00 pooka Exp 
+ * by:   NetBSD: makerumpif.sh,v 1.2 2009/10/14 17:26:09 pooka Exp 
+ */
+
+#include <sys/cdefs.h>
+#include <sys/systm.h>
+
+#include <rump/rump.h>
+#include <rump/rumpkern_if_pub.h>
+
+#include "rumpkern_if_priv.h"
+
+void __dead rump_kern_unavailable(void);
+void __dead
+rump_kern_unavailable(void)
+{
+
+       panic("kern interface unavailable");
+}
+
+void
+rump_reboot(int arg1)
+{
+
+       rumppriv_reboot(arg1);
+}
+
+int
+rump_getversion(void)
+{
+       int rv;
+
+       rv = rumppriv_getversion();
+
+       return rv;
+}
+
+int
+rump_module_init(struct modinfo *arg1, prop_dictionary_t arg2)
+{
+       int rv;
+
+       rv = rumppriv_module_init(arg1, arg2);
+
+       return rv;
+}
+
+int
+rump_module_fini(struct modinfo *arg1)
+{
+       int rv;
+
+       rv = rumppriv_module_fini(arg1);
+
+       return rv;
+}
+
+struct uio *
+rump_uio_setup(void *arg1, size_t arg2, off_t arg3, enum rump_uiorw arg4)
+{
+       struct uio * rv;
+
+       rv = rumppriv_uio_setup(arg1, arg2, arg3, arg4);
+
+       return rv;
+}
+
+size_t
+rump_uio_getresid(struct uio *arg1)
+{
+       size_t rv;
+
+       rv = rumppriv_uio_getresid(arg1);
+
+       return rv;
+}
+
+off_t
+rump_uio_getoff(struct uio *arg1)
+{
+       off_t rv;
+
+       rv = rumppriv_uio_getoff(arg1);
+
+       return rv;
+}
+
+size_t
+rump_uio_free(struct uio *arg1)
+{
+       size_t rv;
+
+       rv = rumppriv_uio_free(arg1);
+
+       return rv;
+}
+
+kauth_cred_t
+rump_cred_create(uid_t arg1, gid_t arg2, size_t arg3, gid_t *arg4)
+{
+       kauth_cred_t rv;
+
+       rv = rumppriv_cred_create(arg1, arg2, arg3, arg4);
+
+       return rv;
+}
+
+kauth_cred_t
+rump_cred_suserget(void)
+{
+       kauth_cred_t rv;
+
+       rv = rumppriv_cred_suserget();
+
+       return rv;
+}
+
+void
+rump_cred_put(kauth_cred_t arg1)
+{
+
+       rumppriv_cred_put(arg1);
+}
+
+struct lwp *
+rump_newproc_switch(void)
+{
+       struct lwp * rv;
+
+       rv = rumppriv_newproc_switch();
+
+       return rv;
+}
+
+struct lwp *
+rump_setup_curlwp(pid_t arg1, lwpid_t arg2, int arg3)
+{
+       struct lwp * rv;
+
+       rv = rumppriv_setup_curlwp(arg1, arg2, arg3);
+
+       return rv;
+}
+
+struct lwp *
+rump_get_curlwp(void)
+{
+       struct lwp * rv;
+
+       rv = rumppriv_get_curlwp();
+
+       return rv;
+}
+
+void
+rump_set_curlwp(struct lwp *arg1)
+{
+
+       rumppriv_set_curlwp(arg1);
+}
+
+void
+rump_clear_curlwp(void)
+{
+
+       rumppriv_clear_curlwp();
+}
+
+int
+rump_sysproxy_set(rump_sysproxy_t arg1, void *arg2)
+{



Home | Main Index | Thread Index | Old Index