From owner-freebsd-hackers Mon May 25 10:36:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA27433 for freebsd-hackers-outgoing; Mon, 25 May 1998 10:36:34 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from picnic.mat.net (picnic.mat.net [206.246.122.117]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA27417 for ; Mon, 25 May 1998 10:36:24 -0700 (PDT) (envelope-from chuckr@glue.umd.edu) Received: from localhost (chuckr@localhost) by picnic.mat.net (8.8.8/8.8.5) with SMTP id MAA06621; Mon, 25 May 1998 12:34:47 -0400 (EDT) Date: Mon, 25 May 1998 12:34:47 -0400 (EDT) From: Chuck Robey X-Sender: chuckr@localhost To: Stefan Eggers cc: hackers@FreeBSD.ORG Subject: Re: devices In-Reply-To: <199805250659.IAA03202@semyam.dinoco.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 25 May 1998, Stefan Eggers wrote: > > Does anyone know how a device gets itself in the list to be probed? I > > /usr/sbin/config takes care of it. It reads a config file (lets name > it GENERIC for now :->) where all devices and their resources get > listed. From this it builds a source file named ioconf.c which goes > under /usr/src/sys/compile/GENERIC. > > This source file contains tables with all the devices. From there one > gets the information which device drivers are in this particular > kernel. The rest is just going through this tables and for each of > the drivers examining their device structure for the field which > denotes the probe function. Then this function gets called and if it > says "hardware is there" one can attach the driver. > > Of course all this information is w/o guarantees about correctness. > It's what I know by now about this from reading sources. But I think > it can't be too far from reality. ;-) Wow, 4 responses with 4 different answers! I'm sure you're all right, just giving me your parts of the answers, so thanks, I have lots to read now ... > > Stefan. > > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@glue.umd.edu | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run Journey2 and picnic (FreeBSD-current) (301) 220-2114 | and jaunt (NetBSD). ----------------------------+----------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message