Blame view
arch/s390/appldata/appldata.h
1.59 KB
1da177e4c Linux-2.6.12-rc2 |
1 2 3 4 5 |
/* * arch/s390/appldata/appldata.h * * Definitions and interface for Linux - z/VM Monitor Stream. * |
d3ae942d1 [S390] Cleanup ap... |
6 |
* Copyright IBM Corp. 2003, 2008 |
1da177e4c Linux-2.6.12-rc2 |
7 |
* |
5b5dd21a8 [S390] appldata e... |
8 |
* Author: Gerald Schaefer <gerald.schaefer@de.ibm.com> |
1da177e4c Linux-2.6.12-rc2 |
9 |
*/ |
1da177e4c Linux-2.6.12-rc2 |
10 11 12 13 14 15 16 17 18 19 |
#define APPLDATA_MAX_REC_SIZE 4024 /* Maximum size of the */ /* data buffer */ #define APPLDATA_MAX_PROCS 100 #define APPLDATA_PROC_NAME_LENGTH 16 /* Max. length of /proc name */ #define APPLDATA_RECORD_MEM_ID 0x01 /* IDs to identify the */ #define APPLDATA_RECORD_OS_ID 0x02 /* individual records, */ #define APPLDATA_RECORD_NET_SUM_ID 0x03 /* must be < 256 ! */ #define APPLDATA_RECORD_PROC_ID 0x04 |
feceb63ec [PATCH] sysctl: s... |
20 |
#define CTL_APPLDATA_TIMER 2121 /* sysctl IDs, must be unique */ |
1da177e4c Linux-2.6.12-rc2 |
21 22 23 24 25 |
#define CTL_APPLDATA_INTERVAL 2122 #define CTL_APPLDATA_MEM 2123 #define CTL_APPLDATA_OS 2124 #define CTL_APPLDATA_NET_SUM 2125 #define CTL_APPLDATA_PROC 2126 |
1da177e4c Linux-2.6.12-rc2 |
26 27 28 29 30 31 32 |
struct appldata_ops { struct list_head list; struct ctl_table_header *sysctl_header; struct ctl_table *ctl_table; int active; /* monitoring status */ /* fill in from here */ |
1da177e4c Linux-2.6.12-rc2 |
33 34 35 36 37 38 |
char name[APPLDATA_PROC_NAME_LENGTH]; /* name of /proc fs node */ unsigned char record_nr; /* Record Nr. for Product ID */ void (*callback)(void *data); /* callback function */ void *data; /* record data */ unsigned int size; /* size of record */ struct module *owner; /* THIS_MODULE */ |
5b5dd21a8 [S390] appldata e... |
39 |
char mod_lvl[2]; /* modification level, EBCDIC */ |
1da177e4c Linux-2.6.12-rc2 |
40 41 42 43 |
}; extern int appldata_register_ops(struct appldata_ops *ops); extern void appldata_unregister_ops(struct appldata_ops *ops); |
5b5dd21a8 [S390] appldata e... |
44 45 |
extern int appldata_diag(char record_nr, u16 function, unsigned long buffer, u16 length, char *mod_lvl); |