Sh writes: > Well, my aim is to understand how to unload module without > modunload,
There isn't a way to do that. Why do you need to do it? > for example,via kmdb and /dev/kmem.If I know the address of _fini() somewhere > in kernel memory,can i do jmp <addr> to it? That wouldn't help for exactly the same reason that directly calling it doesn't work. The problem isn't in calling _fini(). It's in getting the kernel itself to make that call. The kernel calls _fini() when it wants to unload the module; calling _fini() doesn't tell the kernel that you'd like to unload. > Also I've looked in modload and modunload sources and found out that all > operations lead to modctl system call.So, I'll look into modctl syscall > source to understand the mechanism of unloading a module. That might be helpful. Just the same, it'd be more helpful to understand *why* you want to unload the module. Unloading doesn't do anything that appears to be useful from the module's perspective, and is basically just a bit of system housekeeping. -- James Carlson, KISS Network <[EMAIL PROTECTED]> Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677 _______________________________________________ opensolaris-discuss mailing list [email protected]
