From owner-freebsd-arch@FreeBSD.ORG Sat Nov 29 21:22:39 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA7B016A4CE; Sat, 29 Nov 2003 21:22:39 -0800 (PST) Received: from monster.schulte.org (monster.schulte.org [209.134.156.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4374443FE0; Sat, 29 Nov 2003 21:22:36 -0800 (PST) (envelope-from jay.liew@ml.freebsd.jaysern.org) Received: from localhost (localhost [127.0.0.1]) by monster.schulte.org (Postfix) with ESMTP id A10661FB2F; Sat, 29 Nov 2003 23:22:32 -0600 (CST) Received: from pinnacle.schulte.org (pinnacle.schulte.org [209.134.156.220]) by monster.schulte.org (Postfix) with ESMTP id C04101FB2B; Sat, 29 Nov 2003 23:22:31 -0600 (CST) Received: from localhost (dude@localhost)hAU5MVGM091728; Sat, 29 Nov 2003 23:22:31 -0600 (CST) (envelope-from jay.liew@ml.freebsd.jaysern.org) X-Authentication-Warning: pinnacle.schulte.org: dude owned process doing -bs Date: Sat, 29 Nov 2003 23:22:31 -0600 (CST) From: Jay Sern Liew X-X-Sender: dude@pinnacle.schulte.org To: freebsd-arch@freebsd.org, freebsd-threads@freebsd.org, freebsd-hackers@freebsd.org Message-ID: <20031129183810.M90959@pinnacle.schulte.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS 0.3.12pre8 on monster.schulte.org Subject: thread/process & memory management source code X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2003 05:22:39 -0000 Can someone point to me the specific location in the FreeBSD kernel source where the code for FreeBSD's thread/process & memory management are? Specifically, where the dispatcher and scheduler is implemented, what kind of scheduling algorithms(short term, long term) are used, where the dynamic storage allocation algorithm is implemented(I'll try to figure the algorithm used from the code), etc. Any help'd be appreciated! ________________________________________________________________________ Jay Sern Liew jaysern@{acm,ieee}.org gpg --keyserver pgp.mit.edu --recv-keys 0xA115A33F From owner-freebsd-arch@FreeBSD.ORG Sat Nov 29 23:07:09 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E967E16A4CE for ; Sat, 29 Nov 2003 23:07:09 -0800 (PST) Received: from mail8.speakeasy.net (mail8.speakeasy.net [216.254.0.208]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8CA043FB1 for ; Sat, 29 Nov 2003 23:07:07 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 674 invoked from network); 30 Nov 2003 07:07:07 -0000 Received: from unknown (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail8.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 30 Nov 2003 07:07:07 -0000 Received: from hydrogen.funkthat.com (evuhup@localhost.funkthat.com [127.0.0.1])hAU776gP091041; Sat, 29 Nov 2003 23:07:06 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id hAU774WI091040; Sat, 29 Nov 2003 23:07:05 -0800 (PST) Date: Sat, 29 Nov 2003 23:07:04 -0800 From: John-Mark Gurney To: Roman Kurakin Message-ID: <20031130070704.GA64793@funkthat.com> Mail-Followup-To: Roman Kurakin , freebsd-arch@freebsd.org, freebsd-current@freebsd.org References: <3FBE54D0.9000901@cronyx.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FBE54D0.9000901@cronyx.ru> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-current@freebsd.org cc: freebsd-arch@freebsd.org Subject: Re: MAJOR number X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2003 07:07:10 -0000 Sorry for the late reply. Roman Kurakin wrote this message on Fri, Nov 21, 2003 at 21:09 +0300: > I need a new MAJOR number for our new device. > How can I get it? Are you sure you need one? Are you doing a -stable release of the driver? or just a -current? You only need a major number if you are doing a -stable release, otherwise in -current you just don't specify the major number in your cdevsw, and devfs will now automaticly assign you one when you create your device node... There are still major numbers for a few devices that may are standard (such as zero/null), but not common... > I've read that FreeBSD doesn't use them any more. > But we may need it to not interfere with other device > drivers in previous releases of FreeBSD. so, you are planning do do 4.x and earlier releases of your driver? -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."