Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Aug 2002 04:06:07 -0700 (PDT)
From:      Jonathan Mini <mini@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 16256 for review
Message-ID:  <200208191106.g7JB67vS084459@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=16256

Change 16256 by mini@mini_stylus on 2002/08/19 04:05:58

	Add a few comments, clarify others.

Affected files ...

.. //depot/projects/kse/sys/kern/kern_thread.c#88 edit

Differences ...

==== //depot/projects/kse/sys/kern/kern_thread.c#88 (text+ko) ====

@@ -190,6 +190,11 @@
 	allocated_threads--;	/* XXXSMP */
 }
 
+/*
+ * Fill a ucontext_t with a thread's context information.
+ *
+ * This is an analogue to getcontext(3).
+ */
 void
 thread_getcontext(struct thread *td, ucontext_t *uc)
 {
@@ -198,6 +203,11 @@
 	uc->uc_sigmask = td->td_proc->p_sigmask;
 }
 
+/*
+ * Set a thread's context from a ucontext_t.
+ *
+ * This is an analogue to setcontext(3).
+ */
 int
 thread_setcontext(struct thread *td, ucontext_t *uc)
 {
@@ -236,8 +246,8 @@
 	mtx_unlock_spin(&zombie_thread_lock);
 }
 
-/* 
- * reap any  zombie threads.
+/*
+ * Reap zombie threads.
  */
 void
 thread_reap(void)
@@ -436,8 +446,7 @@
 }
 
 /*
- * Set up the upcall pcb in either a given thread or a new one
- * if none given. Use the upcall for the given KSE
+ * Create a thread and schedule it for upcall on the KSE given.
  */
 struct thread *
 thread_schedule_upcall(struct thread *td, struct kse *ke)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208191106.g7JB67vS084459>