[haiku-development] Re: Driver loading
- From: Stephan Assmus <superstippi@xxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Fri, 26 Jun 2009 15:59:20 +0200
On 2009-06-26 at 15:36:44 [+0200], Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
wrote:
> Colin Günther <coling@xxxxxx> wrote:
> > Tracing shows that after loading, the driver gets opened, controled,
> > closed and finally freed. But, driver reloading (after changing some
> > code and recompilation) doesn't work with this "implementation". Is this
> > worth to file a bug?
>
> The implementation itself is irrelevant. The driver will only be reloaded
> if you try to open it; it won't be reloaded just when it's recompiled (as
> it's not loaded when unused anyway). If the driver is not reloaded even
> when opened, and you are sure no one is using your driver anymore, then
> please indeed file a bug report.
While I've been messing with the HDA driver, I've found that reloading
worked for me (even when I just had a link to the driver binary in the
kernel add-ons folder). I don't think anything has changed in the kernel
meanwhile in this respect. So once you recompiled your driver, you probably
have to either restart the network stack, or write your own little program
which opens your driver for you so it get's loaded again.
Best regards,
-Stephan
Other related posts: