From owner-p4-projects Mon Aug 19 4: 6:15 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E8C6B37B401; Mon, 19 Aug 2002 04:06:08 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 888AE37B400 for ; Mon, 19 Aug 2002 04:06:08 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A66943E72 for ; Mon, 19 Aug 2002 04:06:08 -0700 (PDT) (envelope-from mini@freebsd.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7JB68JU084462 for ; Mon, 19 Aug 2002 04:06:08 -0700 (PDT) (envelope-from mini@freebsd.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7JB67vS084459 for perforce@freebsd.org; Mon, 19 Aug 2002 04:06:07 -0700 (PDT) Date: Mon, 19 Aug 2002 04:06:07 -0700 (PDT) Message-Id: <200208191106.g7JB67vS084459@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to mini@freebsd.org using -f From: Jonathan Mini Subject: PERFORCE change 16256 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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