[haiku-development] Re: Driver loading

Axel Dörfler schrieb:
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.


Does this have to work, when the open, control, close, free, read, write functions are pretty unimplemented yet, too?
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

Other related posts: