[haiku-development] Re: Driver loading
- From: Colin Günther <coling@xxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Fri, 26 Jun 2009 15:00:39 +0200
Axel Dörfler schrieb:
Does this have to work, when the open, control, close, free, read, write functions are pretty unimplemented yet, too?Rene Gollent <anevilyak@xxxxxxxxx> wrote:On Thu, Jun 25, 2009 at 12:35 PM, Colin Günther<coling@xxxxxx> wrote:An atheros wlan card, sitting on a mini pci socket.Axel can confirm/refute to be certain, but I believe ifconfig down is enough for the network stack to close its handle on the driver, which should allow you to reload it with a newer version.Exactly. If that doesn't work, please file a bug report.The kernel should automatically detect if your driver binary changed, and will load it again once it can do so (ie. the driver is not used anymore).Bye, Axel.
For example my open function looks like this:
status_t atheros_open(...) {
return B_OK;
}
the other returning those values:
close -> B_OK
free -> B_OK
control -> B_ERROR
read -> B_ERROR
write -> B_ERROR
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?
Regards -colin
- Follow-Ups:
- [haiku-development] Re: Driver loading
- From: Axel Dörfler
- [haiku-development] Re: Driver loading
- References:
- [haiku-development] Re: Driver loading
- From: Axel Dörfler
- [haiku-development] Re: Driver loading
Other related posts:
- » [haiku-development] Driver loading - Colin Günther
- » [haiku-development] Re: Driver loading - Rene Gollent
- » [haiku-development] Re: Driver loading - Colin Günther
- » [haiku-development] Re: Driver loading - Rene Gollent
- » [haiku-development] Re: Driver loading - Colin Günther
- » [haiku-development] Re: Driver loading - Rene Gollent
- » [haiku-development] Re: Driver loading - Axel Dörfler
- » [haiku-development] Re: Driver loading - Colin Günther
- » [haiku-development] Re: Driver loading - Axel Dörfler
- » [haiku-development] Re: Driver loading - Stephan Assmus
- » [haiku-development] Re: Driver loading - Colin Günther
- » [haiku-development] Re: Driver loading - Colin Günther
- » [haiku-development] Re: Driver loading - Axel Dörfler
- » [haiku-development] Re: Driver loading - Axel Dörfler
- » [haiku-development] Re: Driver loading - Colin Günther