Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpkern Rewrite rump process and lwp alloc...



details:   https://anonhg.NetBSD.org/src/rev/331b1d19c6d2
branches:  trunk
changeset: 757509:331b1d19c6d2
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Sep 01 19:13:38 2010 +0000

description:
Rewrite rump process and lwp allocation routines now that I have
some idea of how they should be done.  This change essentially
moves the responsibility of pid/lwpid management from the application
side into the rump kernel.  It also introduces clear rules on what
happens when, i.e. introduces semantics (these semantics will be
documented on the man page, and more importantly in atf tests).

diffstat:

 sys/rump/librump/rumpkern/rumpkern.ifspec |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (34 lines):

diff -r e616983964d3 -r 331b1d19c6d2 sys/rump/librump/rumpkern/rumpkern.ifspec
--- a/sys/rump/librump/rumpkern/rumpkern.ifspec Wed Sep 01 17:25:57 2010 +0000
+++ b/sys/rump/librump/rumpkern/rumpkern.ifspec Wed Sep 01 19:13:38 2010 +0000
@@ -1,4 +1,4 @@
-;      $NetBSD: rumpkern.ifspec,v 1.5 2010/04/14 14:12:48 pooka Exp $
+;      $NetBSD: rumpkern.ifspec,v 1.6 2010/09/01 19:13:38 pooka Exp $
 
 NAME|kern
 PUBHDR|include/rump/rumpkern_if_pub.h
@@ -21,16 +21,16 @@
 size_t         |uio_free       |struct uio *
 
 struct kauth_cred*|cred_create |uid_t, gid_t, size_t, gid_t *
-struct kauth_cred*|cred_suserget|void
 void             |cred_put     |struct kauth_cred *
 
-; lwp interfaces.  these need much love
-struct lwp *   |newproc_switch         |void
-struct lwp *   |lwp_alloc              |pid_t, lwpid_t
-struct lwp *   |lwp_alloc_and_switch   |pid_t, lwpid_t
-struct lwp *   |lwp_curlwp             |void
-void           |lwp_switch             |struct lwp *
-void           |lwp_release            |struct lwp *
+; lwp and proc creation / switching interfaces
+int            |lwproc_newproc         |void
+int            |lwproc_newlwp          |pid_t
+void           |lwproc_switch          |struct lwp *
+void           |lwproc_releaselwp      |void
+struct lwp *   |lwproc_curlwp          |void
+
+void           |allbetsareoff_setid    |pid_t, int
 
 int            |sysproxy_set                   |rump_sysproxy_t, void *
 int            |sysproxy_socket_setup_client   |int



Home | Main Index | Thread Index | Old Index