summaryrefslogtreecommitdiff
path: root/kslog/kslog.h
blob: 4db963c7929758e6b8567f271b63dd686e439b52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * kslog.h
 *
 * kslog defines, etc.
 *
 * mike@gravitino.net
 */
 
// keystroke circular buffer size
#define CBUF_SIZE 1024		

// ioctl cmd structure
typedef struct kslog_op
{
	// id if related to operation (PID/UID)
	int val;
} kslog_op;

#define KSLOG_SETPID	_IOW('O', 0, struct kslog_op)
#define KSLOG_SETUID	_IOW('O', 1, struct kslog_op)
#define KSLOG_START	_IOW('O', 2, struct kslog_op)
#define KSLOG_STOP	_IOW('O', 3, struct kslog_op)
#define KSLOG_STATUS	_IOR('O', 4, struct kslog_op)