From owner-freebsd-current Wed May 12 15:43:53 1999 Delivered-To: freebsd-current@freebsd.org Received: from ocean.campus.luth.se (ocean.campus.luth.se [130.240.194.116]) by hub.freebsd.org (Postfix) with ESMTP id 92F6814C14 for ; Wed, 12 May 1999 15:43:49 -0700 (PDT) (envelope-from karpen@ocean.campus.luth.se) Received: (from karpen@localhost) by ocean.campus.luth.se (8.9.1/8.9.1) id AAA11182; Thu, 13 May 1999 00:36:18 +0200 (CEST) (envelope-from karpen) From: Mikael Karpberg Message-Id: <199905122236.AAA11182@ocean.campus.luth.se> Subject: Re: cvs commit: src/sys/pci pcisupport.c In-Reply-To: <199905122209.PAA01534@dingo.cdrom.com> from Mike Smith at "May 12, 99 03:09:05 pm" To: mike@smith.net.au (Mike Smith) Date: Thu, 13 May 1999 00:36:18 +0200 (CEST) Cc: soda@sra.co.jp, current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG According to Mike Smith: > This is actually a major defect in the newconfig design; if the kernel > doesn't already know about a device when it is built, it can never > support it. That would be so lovely, with a DEVFS too: Plug your Cool card into your pcmcia slot, and get the message on the sytem console that an unknown pcmcia card called "Cool", made by CoolMakers, Inc. Damn... not even a generic driver wanted this card. Pull the card out and go for the web: # ftp ftp.a.cool.thing.com ftp> get cool.tgz --> Downloading file. ftp> quit --> Good bye. # install_driver cool.tgz --> Adding driver to driver database, and installing /modules/cool.ko! And at this point the kernel has not loaded the driver, but just been told there's a new driver around and for what cards and vendors it works, etc. This is done by a library call, or something, which does adds the driver to the database, and a syscall to update the kernel's already loaded database, or to get it to reload the database. Plug the card in again, and the kernel loads in cool.ko and probes the card, and created a /dev/cool, and everything works just fine. No reboot, no recompile, nada. *purr* /Mikael To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message