fs: use kmem_cache_zalloc instead
[pv_ops_mirror.git] / include / asm-s390 / monwriter.h
blobf0cbf96c52e61efc5c696de38e6e9dddfc2eeca1
1 /*
2 * include/asm-s390/monwriter.h
4 * Copyright (C) IBM Corp. 2006
5 * Character device driver for writing z/VM APPLDATA monitor records
6 * Version 1.0
7 * Author(s): Melissa Howland <melissah@us.ibm.com>
9 */
11 #ifndef _ASM_390_MONWRITER_H
12 #define _ASM_390_MONWRITER_H
14 /* mon_function values */
15 #define MONWRITE_START_INTERVAL 0x00 /* start interval recording */
16 #define MONWRITE_STOP_INTERVAL 0x01 /* stop interval or config recording */
17 #define MONWRITE_GEN_EVENT 0x02 /* generate event record */
18 #define MONWRITE_START_CONFIG 0x03 /* start configuration recording */
20 /* the header the app uses in its write() data */
21 struct monwrite_hdr {
22 unsigned char mon_function;
23 unsigned short applid;
24 unsigned char record_num;
25 unsigned short version;
26 unsigned short release;
27 unsigned short mod_level;
28 unsigned short datalen;
29 unsigned char hdrlen;
31 } __attribute__((packed));
33 #endif /* _ASM_390_MONWRITER_H */