Date: Thu, 18 Jan 2001 09:56:14 -0500 From: "David E. Cross" <crossd@dogmatix.robotics.cs.rpi.edu> To: Mike Smith <msmith@freebsd.org> Cc: "David E. Cross" <crossd@intrepid.cs.rpi.edu>, hackers@freebsd.org, crossd@cs.rpi.edu Subject: Re: Device Driver Question (bus_set_resource) Message-ID: <200101181456.JAA40926@cs.rpi.edu> In-Reply-To: Message from Mike Smith <msmith@freebsd.org> of "Wed, 17 Jan 2001 14:49:46 PST." <200101172249.f0HMnkQ00556@mass.osd.bsdi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Thank you... > > > > After a couple of hours, Jon Chen and I have figured out most of what you > > just said :P :) > > > > How would one use hints with a kld? > > Badly. 8( You can only really set them with the loader right now. > > There are a couple of kernel datastores that need some tweaking; the > environment is one of them. Ok, everything is working well, except for one last thing... 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"? -- David Cross | email: crossd@cs.rpi.edu Lab Director | Rm: 308 Lally Hall Rensselaer Polytechnic Institute, | Ph: 518.276.2860 Department of Computer Science | Fax: 518.276.4033 I speak only for myself. | WinNT:Linux::Linux:FreeBSD 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?200101181456.JAA40926>