From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 6 17:29:00 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 729) id 8919116A4CF; Fri, 6 Feb 2004 17:29:00 -0800 (PST) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Sridhar Chellappa In-Reply-To: Your message of "Tue, 03 Feb 2004 12:03:16 EST." <401FD454.1010504@spinnakernet.com> Mime-Version: 1.0 Content-Type: text/plain Message-Id: <20040207012900.8919116A4CF@hub.freebsd.org> Date: Fri, 6 Feb 2004 17:29:00 -0800 (PST) From: jkoshy@FreeBSD.ORG (Joseph Koshy) cc: freebsd-hackers@freebsd.org Subject: Re: Kernel Threads X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2004 01:29:00 -0000 Sridhar, > I heard that even Interrupts run under kernel threads context See ithread(9). > How can a kernel thread yield CPU when it detects it is idle? kthread_suspend(), or yield(). See kthread(9), mi_switch(9). Let me also answer your questions(s) at another level: I have found information about the kernel in the following places: 1. The section 9 manual pages 2. The FreeBSD Arch Handbook 3. The FreeBSD Handbook 4. The sources -- use 'glimpse' on a checked out -CURRENT tree. 5. Under /usr/share/doc/papers/ If you find some documentation to be missing, and you had to figure out something non-obvious, please file a PR with sample text. Regards, Koshy