From owner-freebsd-current Tue May 14 16:49:48 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id QAA24711 for current-outgoing; Tue, 14 May 1996 16:49:48 -0700 (PDT) Received: from ref.tfs.com (ref.tfs.com [140.145.254.251]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id QAA24699 for ; Tue, 14 May 1996 16:49:46 -0700 (PDT) Received: (from julian@localhost) by ref.tfs.com (8.7.3/8.6.9) id SAA04389; Mon, 13 May 1996 18:22:01 -0700 (PDT) Message-Id: <199605140122.SAA04389@ref.tfs.com> Subject: Re: lkm qcam To: pst@shockwave.com (Paul Traina) Date: Mon, 13 May 1996 18:22:01 -0700 (PDT) From: "JULIAN Elischer" Cc: terry@lambert.org, mmead@Glock.COM, current@freebsd.org In-Reply-To: <199605132157.OAA11515@precipice.shockwave.com> from "Paul Traina" at May 13, 96 02:57:32 pm X-Mailer: ELM [version 2.4 PL25 ME8b] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > There are no interrupts used by the driver, and there is a deinit > routine... is there a way to remove an entry from the cdevsw() > structure? In -current, the cdevsw entries are simply a pointer to the cdevsw struct in the driver.. you just need to zero out the pointer. there shoudl be a routine to do this in /sys/kern/kern_conf.c I guess.. > > Paul > > From: Terry Lambert > Subject: Re: lkm qcam > > qcamcontrol is an example program that uses the qcam driver, if that's > > what you mean. > > > > I occasionally use the driver in lkm mode for testing, however there are > > definitely some problems, either with the driver, or more likely with the > > LKM interface, because if you: > > > > load lkm > > access qcam > > unload lkm > > > > access qcam > > > > the system crashes rather than returning device unconfigured. :-( > > Sounds like the interrupt isn't untrapped when the driver is unloaded. > > You will need to provide a deinit routine. > > > Terry Lambert > terry@lambert.org > --- > Any opinions in this posting are my own and not those of my present > or previous employers. >