• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
2 #ifndef __BIOSNOOP_H
3 #define __BIOSNOOP_H
4 
5 #define DISK_NAME_LEN	32
6 #define TASK_COMM_LEN	16
7 #define RWBS_LEN	8
8 
9 #define MINORBITS	20
10 #define MINORMASK	((1U << MINORBITS) - 1)
11 
12 #define MKDEV(ma, mi)	(((ma) << MINORBITS) | (mi))
13 
14 struct event {
15 	char comm[TASK_COMM_LEN];
16 	__u64 delta;
17 	__u64 qdelta;
18 	__u64 ts;
19 	__u64 sector;
20 	__u32 len;
21 	__u32 pid;
22 	__u32 cmd_flags;
23 	__u32 dev;
24 };
25 
26 #endif /* __BIOSNOOP_H */
27