Date: Mon, 25 May 1998 12:34:47 -0400 (EDT) From: Chuck Robey <chuckr@glue.umd.edu> To: Stefan Eggers <seggers@semyam.dinoco.de> Cc: hackers@FreeBSD.ORG Subject: Re: devices Message-ID: <Pine.BSF.3.96.980525123322.20133g-100000@localhost> In-Reply-To: <199805250659.IAA03202@semyam.dinoco.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980525123322.20133g-100000>