RE: [evlog-dev] [PATCH] Resolve module symbols (continues the res olving kernel sy mbols patch)

"Zhu, Yi" <[email protected]> Thu, 23 Jan 2003 15:58:42 +0800
Newsgroups gmane.linux.kernel.event-logging
Message-ID <[email protected]>
Hi,

> Another good time to update the module symbols is when insmod 
> or rmmod is
> called. Patching the modutils is what the klogd suggested to 
> do. I will send
> the patch for modutils later if you all agree this approach.

Below is the patch for modutils-2.4.22. Because modutils changes a lot from
2.0, you may need to modify the patch if you use different versions.
Fortunately it is very simple :)

diff -Naur modutils-2.4.22/insmod/insmod.c
modutils-2.4.22-new/insmod/insmod.c
--- modutils-2.4.22/insmod/insmod.c     2002-11-25 11:40:45.000000000 +0800
+++ modutils-2.4.22-new/insmod/insmod.c 2003-01-23 16:02:40.000000000 +0800
@@ -2153,6 +2153,7 @@
        if (warnings && !noload)
                lprintf("Module %s loaded, with warnings", m_name);
        exit_status = 0;
+       system("killall -USR1 evlogd");
 
       out:
        if (dolock)

Thanks,
-Zhu Yi


-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp