From owner-cvs-src@FreeBSD.ORG Fri Oct 26 15:45:02 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A539016A4A1; Fri, 26 Oct 2007 15:45:02 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id 1CA8713C4B2; Fri, 26 Oct 2007 15:45:01 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8p) with ESMTP id 216226645-1834499 for multiple; Fri, 26 Oct 2007 11:47:27 -0400 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l9QFifts036512; Fri, 26 Oct 2007 11:44:43 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Julian Elischer Date: Fri, 26 Oct 2007 11:34:43 -0400 User-Agent: KMail/1.9.6 References: <200710260800.l9Q80fee085818@repoman.freebsd.org> In-Reply-To: <200710260800.l9Q80fee085818@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710261134.44434.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Fri, 26 Oct 2007 11:44:44 -0400 (EDT) X-Virus-Scanned: ClamAV 0.91.2/4600/Fri Oct 26 10:02:30 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/top machine.c src/lib/libkvm kvm_proc.c src/bin/ps extern.h keyword.c print.c ps.c src/sys/kern init_main.c kern_exit.c kern_idle.c kern_intr.c kern_kthread.c kern_shutdown.c kern_thread.c sched_4bsd.c src/sys/sys kthread.h ... X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2007 15:45:02 -0000 On Friday 26 October 2007 04:00:41 am Julian Elischer wrote: > julian 2007-10-26 08:00:41 UTC > > FreeBSD src repository > > Modified files: > usr.bin/top machine.c > lib/libkvm kvm_proc.c > bin/ps extern.h keyword.c print.c ps.c > sys/kern init_main.c kern_exit.c kern_idle.c > kern_intr.c kern_kthread.c > kern_shutdown.c kern_thread.c > sched_4bsd.c > sys/sys kthread.h proc.h > Log: > Introduce a way to make pure kernal threads. > kthread_add() takes the same parameters as the old kthread_create() > plus a pointer to a process structure, and adds a kernel thread > to that process. > > kproc_kthread_add() takes the parameters for kthread_add, > plus a process name and a pointer to a pointer to a process instead of just > a pointer, and if the proc * is NULL, it creates the process to the > specifications required, before adding the thread to it. > > All other old kthread_xxx() calls return, but act on (struct thread *) > instead of (struct proc *). One reason to change the name is so that > any old kernel modules that are lying around and expect kthread_create() > to make a process will not just accidentally link. > > fix top to show kernel threads by their thread name in -SH mode > add a tdnam formatting option to ps to show thread names. > > make all idle threads actual kthreads and put them into their own idled process. > make all interrupt threads kthreads and put them in an interd process > (mainly for aesthetic and accounting reasons) > rename proc 0 to be 'kernel' and it's swapper thread is now 'swapper' > > man page fixes to follow. Why not just "idle" and "intr" for the kernel processes? We didn't have "swapperd", "syncerd", or "vnlrud" before. -- John Baldwin