0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #define APPLDATA_MAX_REC_SIZE 4024
0011
0012 #define APPLDATA_MAX_PROCS 100
0013
0014 #define APPLDATA_PROC_NAME_LENGTH 16
0015
0016 #define APPLDATA_RECORD_MEM_ID 0x01
0017 #define APPLDATA_RECORD_OS_ID 0x02
0018 #define APPLDATA_RECORD_NET_SUM_ID 0x03
0019 #define APPLDATA_RECORD_PROC_ID 0x04
0020
0021 #define CTL_APPLDATA_TIMER 2121
0022 #define CTL_APPLDATA_INTERVAL 2122
0023 #define CTL_APPLDATA_MEM 2123
0024 #define CTL_APPLDATA_OS 2124
0025 #define CTL_APPLDATA_NET_SUM 2125
0026 #define CTL_APPLDATA_PROC 2126
0027
0028 struct appldata_ops {
0029 struct list_head list;
0030 struct ctl_table_header *sysctl_header;
0031 struct ctl_table *ctl_table;
0032 int active;
0033
0034
0035 char name[APPLDATA_PROC_NAME_LENGTH];
0036 unsigned char record_nr;
0037 void (*callback)(void *data);
0038 void *data;
0039 unsigned int size;
0040 struct module *owner;
0041 char mod_lvl[2];
0042 };
0043
0044 extern int appldata_register_ops(struct appldata_ops *ops);
0045 extern void appldata_unregister_ops(struct appldata_ops *ops);
0046 extern int appldata_diag(char record_nr, u16 function, unsigned long buffer,
0047 u16 length, char *mod_lvl);
0048