This is a module:

#include

.....
int _fini(void) {
int i =mod_remove(...);
return i;
}

int _init(void) {
int i = modinstall(....);

_fini();
return i;
}

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
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to