From owner-freebsd-hackers Thu Jan 18 13:29:25 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.osd.bsdi.com (unknown [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id 4B2A837B401 for ; Thu, 18 Jan 2001 13:29:08 -0800 (PST) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.11.1/8.11.1) with ESMTP id f0ILhnQ01285; Thu, 18 Jan 2001 13:43:49 -0800 (PST) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200101182143.f0ILhnQ01285@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: "David E. Cross" Cc: hackers@freebsd.org Subject: Re: Device Driver Question (bus_set_resource) In-reply-to: Your message of "Thu, 18 Jan 2001 09:56:14 EST." <200101181456.JAA40926@cs.rpi.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 18 Jan 2001 13:43:49 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I load the driver the first time, and it loads correctly. I unload it and > reload it and it attempts to attach twice (with the exact same resource > values). I unload and reload it and it attempts to load 3 times, unload/reload > ... 4 times (you see the pattern). If I load the second module I am working > on (exact same type as this module), it tries to re-attach the old module > "N" times (depending on the number of previous unload/reloads). > > I am obviously building up state somewhere in the kernel... how can I get > rid of this "state"? I think that this may be a misfeature of the bus you're attaching to not correctly destroying your device; I haven't done much with ISA KLDs, so I'm not sure. Are you calling BUS_ADD_CHILD or similar anywhere? -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message