Date: Mon, 25 May 1998 08:59:38 +0200 From: Stefan Eggers <seggers@semyam.dinoco.de> To: Chuck Robey <chuckr@glue.umd.edu> Cc: seggers@semyam.dinoco.de Subject: Re: devices Message-ID: <199805250659.IAA03202@semyam.dinoco.de> In-Reply-To: Your message of "Sun, 24 May 1998 23:14:21 EDT." <Pine.BSF.3.96.980524231249.20133Y-100000@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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. ;-) Stefan. 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?199805250659.IAA03202>