From owner-freebsd-hackers Sun Dec 2 17:53:35 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from chmls05.mediaone.net (chmls05.mediaone.net [24.147.1.143]) by hub.freebsd.org (Postfix) with ESMTP id 833DC37B417 for ; Sun, 2 Dec 2001 17:53:29 -0800 (PST) Received: from gandalf (h0050dac2456d.ne.mediaone.net [65.96.125.3]) by chmls05.mediaone.net (8.11.1/8.11.1) with SMTP id fB31rD112277; Sun, 2 Dec 2001 20:53:14 -0500 (EST) Message-ID: <003e01c17b9c$0e571ff0$037d6041@gandalf> From: "Dragon Fire" To: "Warner Losh" Cc: References: <000601c17b6b$7a89c190$037d6041@gandalf> <200112030128.fB31S0M62172@harmony.village.org> Subject: Re: device object, driver object, cdevsw Date: Sun, 2 Dec 2001 20:42:00 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 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. Thank you in advance, > > : > : Would it be fair to say the KLD components represent the dynamics kernel > : facilities and the cdevsw implments what we consider the "traditional" Unix > : device driver. Could somebody shed light on this subject. > > The matter is actually fairly simple. > > Your make_dev() calls assocaite the cdevsw to use with the device > nodes you create (which also must be created using mknod in -stable or > current w/o devfs). > > Typically, you won't have to worry too much about the link between the > two. It just happens. > the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message