Go to the FreeLists Home Page Home Signup Help Login
 



[openbeosnetteam] || [Date Prev] [05-2002 Date Index] [Date Next] || [Thread Prev] [05-2002 Thread Index] [Thread Next]

[openbeosnetteam] Re: Unloading modules...

  • From: philippe.houdoin@xxxxxxx
  • To: openbeosnetteam@xxxxxxxxxxxxx
  • Date: Tue, 07 May 2002 12:56:54 +0200 (MEST)
David wrote:

> Big issues:
> - thread safety. We can easily be stopping and removing modules as other
> modules are trying to call them. This would be v.bad

Here we could take profit of the ref count feature of get/put_module().
Instead of doing only one get_module() the first time we need a module, 
we could call it *each* time. That way, the kernel will do ref count for 
us.

But it'll need to take care of any first_time startup code, like 
core->start() for example...
It could be really tricky!

> - this can't be done via a socket, as a socket needs functions 
> to be called in modules. Therefore this should be done via a 
> sysctl call once we get that integrated into the kernel

Hum, what about a dedicated /dev/net/stack driver ioctl() ?
It's there. We can open() the driver *without* using a socket... 
AFAIR, there is already some NET_STACK_RESTART opcode, commented out, 
in the net_stack_control() code...

-Philippe.






[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.