From owner-freebsd-hackers Sun Dec 2 17:57:26 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 241A037B416 for ; Sun, 2 Dec 2001 17:57:22 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id fB31vJa36761; Sun, 2 Dec 2001 18:57:19 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id fB31vIM62484; Sun, 2 Dec 2001 18:57:18 -0700 (MST) (envelope-from imp@harmony.village.org) Message-Id: <200112030157.fB31vIM62484@harmony.village.org> To: "Dragon Fire" Subject: Re: device object, driver object, cdevsw Cc: freebsd-hackers@FreeBSD.ORG In-reply-to: Your message of "Sun, 02 Dec 2001 20:42:00 EST." <003e01c17b9c$0e571ff0$037d6041@gandalf> References: <003e01c17b9c$0e571ff0$037d6041@gandalf> <000601c17b6b$7a89c190$037d6041@gandalf> <200112030128.fB31S0M62172@harmony.village.org> Date: Sun, 02 Dec 2001 18:57:18 -0700 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <003e01c17b9c$0e571ff0$037d6041@gandalf> "Dragon Fire" writes: : I am using stable not devfs for development. : : In the Design and Implementation of the 4.4 BSD Operating System. Chapter 6 : states : : Device Drivers : : A device is divided into three main sections : 1. Autoconfiguration and initialization routines : 2. Routines for servicing I/O requests (the top half) : 3. Interrupt service routines (the bottom half) : : Would it be a fair analogy to say the KLD portion of the code equates to 1., : the cdevsw equate to 2., and the isr equate to 3. : : I appreciate your response I'm just trying to get a thorough understanding. Yes. all three of these live in one file, usually done the same way I do mine. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message