Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2001 13:43:49 -0800
From:      Mike Smith <msmith@freebsd.org>
To:        "David E. Cross" <crossd@dogmatix.robotics.cs.rpi.edu>
Cc:        hackers@freebsd.org
Subject:   Re: Device Driver Question (bus_set_resource) 
Message-ID:  <200101182143.f0ILhnQ01285@mass.osd.bsdi.com>
In-Reply-To: Your message of "Thu, 18 Jan 2001 09:56:14 EST." <200101181456.JAA40926@cs.rpi.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101182143.f0ILhnQ01285>