On 12 Dec 2005, at 15:04, Sh wrote:

And I expect this module to unload automatically, so when I load it it should be unloaded by _fini().But, I still see it in modinfo as loaded/installed. So,how this mechanism can be applied?I mean I want to unload module when some event happens

Why do you want the module to unload? It's occupying memory if it's loaded but that's pretty much all. You can tear down any other resources as and when you like. The system will call _fini() and unload the module if memory becomes tight or root executes 'modunload -i 0' (or on a debug kernel there is a thread which attempts to unload all modules about every 30 seconds).

  Paul

--
Paul Durrant
+44 7717 868957

Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to