Update of /cvsroot/netadm/gwc/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5677/include
Modified Files:
global.h
Log Message:
ADD:
register_gwcklog_chrdev (major, devname);
unregister_gwcklog_chrdev (major, devname);
When you want more chrdevs for any other classified log type.
follow these step.
[ kernel module ]
1. register character log modules only with calling
register_gwcklog_chrdev (major number, device name);
[ user layer ]
2. make /dev node with mknod command. note! major number and its name.
3. call open chrdev with RD_ONLY
4. select the event from the device above, and read data.
Index: global.h
===================================================================
RCS file: /cvsroot/netadm/gwc/include/global.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** global.h 6 May 2006 23:43:23 -0000 1.9
--- global.h 8 May 2006 16:53:26 -0000 1.10
***************
*** 93,96 ****
--- 93,100 ----
#define GWC_PF_LOG "gwc_pf.log"
#define GWC_KSYS_LOG "gwc_ksys.log"
+
+ #define MINGWCLOG_MAJORNUM 220
+ #define MAXGWCLOG_MAJORNUM 240
+
#define GWC_PF_MAJORNUM 220
#define GWC_SYS_MAJORNUM 221
|