Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump regen: new lwp/proc interfaces
details: https://anonhg.NetBSD.org/src/rev/8b99667471e3
branches: trunk
changeset: 757512:8b99667471e3
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Sep 01 19:33:04 2010 +0000
description:
regen: new lwp/proc interfaces
diffstat:
sys/rump/include/rump/rumpkern_if_pub.h | 19 ++--
sys/rump/librump/rumpkern/rumpkern_if_priv.h | 19 ++--
sys/rump/librump/rumpkern/rumpkern_if_wrappers.c | 87 +++++++++--------------
3 files changed, 54 insertions(+), 71 deletions(-)
diffs (212 lines):
diff -r 9b7dbc581c23 -r 8b99667471e3 sys/rump/include/rump/rumpkern_if_pub.h
--- a/sys/rump/include/rump/rumpkern_if_pub.h Wed Sep 01 19:32:11 2010 +0000
+++ b/sys/rump/include/rump/rumpkern_if_pub.h Wed Sep 01 19:33:04 2010 +0000
@@ -1,9 +1,9 @@
-/* $NetBSD: rumpkern_if_pub.h,v 1.8 2010/07/19 15:38:28 pooka Exp $ */
+/* $NetBSD: rumpkern_if_pub.h,v 1.9 2010/09/01 19:33:04 pooka Exp $ */
/*
* Automatically generated. DO NOT EDIT.
- * from: NetBSD: rumpkern.ifspec,v 1.5 2010/04/14 14:12:48 pooka Exp
- * by: NetBSD: makerumpif.sh,v 1.4 2009/10/15 00:29:19 pooka Exp
+ * from: NetBSD: rumpkern.ifspec,v 1.6 2010/09/01 19:13:38 pooka Exp
+ * by: NetBSD: makerumpif.sh,v 1.5 2010/09/01 19:32:11 pooka Exp
*/
void rump_pub_reboot(int);
@@ -16,14 +16,13 @@
off_t rump_pub_uio_getoff(struct uio *);
size_t rump_pub_uio_free(struct uio *);
struct kauth_cred* rump_pub_cred_create(uid_t, gid_t, size_t, gid_t *);
-struct kauth_cred* rump_pub_cred_suserget(void);
void rump_pub_cred_put(struct kauth_cred *);
-struct lwp * rump_pub_newproc_switch(void);
-struct lwp * rump_pub_lwp_alloc(pid_t, lwpid_t);
-struct lwp * rump_pub_lwp_alloc_and_switch(pid_t, lwpid_t);
-struct lwp * rump_pub_lwp_curlwp(void);
-void rump_pub_lwp_switch(struct lwp *);
-void rump_pub_lwp_release(struct lwp *);
+int rump_pub_lwproc_newproc(void);
+int rump_pub_lwproc_newlwp(pid_t);
+void rump_pub_lwproc_switch(struct lwp *);
+void rump_pub_lwproc_releaselwp(void);
+struct lwp * rump_pub_lwproc_curlwp(void);
+void rump_pub_allbetsareoff_setid(pid_t, int);
int rump_pub_sysproxy_set(rump_sysproxy_t, void *);
int rump_pub_sysproxy_socket_setup_client(int);
int rump_pub_sysproxy_socket_setup_server(int);
diff -r 9b7dbc581c23 -r 8b99667471e3 sys/rump/librump/rumpkern/rumpkern_if_priv.h
--- a/sys/rump/librump/rumpkern/rumpkern_if_priv.h Wed Sep 01 19:32:11 2010 +0000
+++ b/sys/rump/librump/rumpkern/rumpkern_if_priv.h Wed Sep 01 19:33:04 2010 +0000
@@ -1,9 +1,9 @@
-/* $NetBSD: rumpkern_if_priv.h,v 1.7 2010/04/14 14:14:52 pooka Exp $ */
+/* $NetBSD: rumpkern_if_priv.h,v 1.8 2010/09/01 19:33:05 pooka Exp $ */
/*
* Automatically generated. DO NOT EDIT.
- * from: NetBSD: rumpkern.ifspec,v 1.4 2010/03/05 18:41:46 pooka Exp
- * by: NetBSD: makerumpif.sh,v 1.4 2009/10/15 00:29:19 pooka Exp
+ * from: NetBSD: rumpkern.ifspec,v 1.6 2010/09/01 19:13:38 pooka Exp
+ * by: NetBSD: makerumpif.sh,v 1.5 2010/09/01 19:32:11 pooka Exp
*/
void rump_reboot(int);
@@ -16,14 +16,13 @@
off_t rump_uio_getoff(struct uio *);
size_t rump_uio_free(struct uio *);
struct kauth_cred* rump_cred_create(uid_t, gid_t, size_t, gid_t *);
-struct kauth_cred* rump_cred_suserget(void);
void rump_cred_put(struct kauth_cred *);
-struct lwp * rump_newproc_switch(void);
-struct lwp * rump_lwp_alloc(pid_t, lwpid_t);
-struct lwp * rump_lwp_alloc_and_switch(pid_t, lwpid_t);
-struct lwp * rump_lwp_curlwp(void);
-void rump_lwp_switch(struct lwp *);
-void rump_lwp_release(struct lwp *);
+int rump_lwproc_newproc(void);
+int rump_lwproc_newlwp(pid_t);
+void rump_lwproc_switch(struct lwp *);
+void rump_lwproc_releaselwp(void);
+struct lwp * rump_lwproc_curlwp(void);
+void rump_allbetsareoff_setid(pid_t, int);
int rump_sysproxy_set(rump_sysproxy_t, void *);
int rump_sysproxy_socket_setup_client(int);
int rump_sysproxy_socket_setup_server(int);
diff -r 9b7dbc581c23 -r 8b99667471e3 sys/rump/librump/rumpkern/rumpkern_if_wrappers.c
--- a/sys/rump/librump/rumpkern/rumpkern_if_wrappers.c Wed Sep 01 19:32:11 2010 +0000
+++ b/sys/rump/librump/rumpkern/rumpkern_if_wrappers.c Wed Sep 01 19:33:04 2010 +0000
@@ -1,9 +1,9 @@
-/* $NetBSD: rumpkern_if_wrappers.c,v 1.7 2010/04/14 14:14:52 pooka Exp $ */
+/* $NetBSD: rumpkern_if_wrappers.c,v 1.8 2010/09/01 19:33:05 pooka Exp $ */
/*
* Automatically generated. DO NOT EDIT.
- * from: NetBSD: rumpkern.ifspec,v 1.4 2010/03/05 18:41:46 pooka Exp
- * by: NetBSD: makerumpif.sh,v 1.4 2009/10/15 00:29:19 pooka Exp
+ * from: NetBSD: rumpkern.ifspec,v 1.6 2010/09/01 19:13:38 pooka Exp
+ * by: NetBSD: makerumpif.sh,v 1.5 2010/09/01 19:32:11 pooka Exp
*/
#include <sys/cdefs.h>
@@ -140,18 +140,6 @@
return rv;
}
-struct kauth_cred*
-rump_pub_cred_suserget(void)
-{
- struct kauth_cred* rv;
-
- rump_schedule();
- rv = rump_cred_suserget();
- rump_unschedule();
-
- return rv;
-}
-
void
rump_pub_cred_put(struct kauth_cred *arg1)
{
@@ -161,69 +149,66 @@
rump_unschedule();
}
-struct lwp *
-rump_pub_newproc_switch(void)
+int
+rump_pub_lwproc_newproc(void)
{
- struct lwp * rv;
+ int rv;
rump_schedule();
- rv = rump_newproc_switch();
+ rv = rump_lwproc_newproc();
rump_unschedule();
return rv;
}
-struct lwp *
-rump_pub_lwp_alloc(pid_t arg1, lwpid_t arg2)
+int
+rump_pub_lwproc_newlwp(pid_t arg1)
{
- struct lwp * rv;
+ int rv;
rump_schedule();
- rv = rump_lwp_alloc(arg1, arg2);
- rump_unschedule();
-
- return rv;
-}
-
-struct lwp *
-rump_pub_lwp_alloc_and_switch(pid_t arg1, lwpid_t arg2)
-{
- struct lwp * rv;
-
- rump_schedule();
- rv = rump_lwp_alloc_and_switch(arg1, arg2);
- rump_unschedule();
-
- return rv;
-}
-
-struct lwp *
-rump_pub_lwp_curlwp(void)
-{
- struct lwp * rv;
-
- rump_schedule();
- rv = rump_lwp_curlwp();
+ rv = rump_lwproc_newlwp(arg1);
rump_unschedule();
return rv;
}
void
-rump_pub_lwp_switch(struct lwp *arg1)
+rump_pub_lwproc_switch(struct lwp *arg1)
{
rump_schedule();
- rump_lwp_switch(arg1);
+ rump_lwproc_switch(arg1);
rump_unschedule();
}
void
-rump_pub_lwp_release(struct lwp *arg1)
+rump_pub_lwproc_releaselwp(void)
{
rump_schedule();
- rump_lwp_release(arg1);
+ rump_lwproc_releaselwp();
+ rump_unschedule();
+}
+
+struct lwp *
+rump_pub_lwproc_curlwp(void)
+{
+ struct lwp * rv;
+
+ rump_schedule();
+ rv = rump_lwproc_curlwp();
+ rump_unschedule();
+
+ return rv;
+}
+
+void
+rump_pub_allbetsareoff_setid(pid_t arg1, int arg2)
+{
+
+ rump_schedule();
+ rump_allbetsareoff_setid(arg1, arg2);
rump_unschedule();
}
Home |
Main Index |
Thread Index |
Old Index