aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-declextract/testdata/include/uapi/file_operations.h
blob: c874415d3fd92e5a33c9d88cb055b467a1d1a034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2024 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

#include "ioctl.h"

#define FOO_IOCTL1 _IO('c', 1)
#define FOO_IOCTL2 _IOR('c', 2, int)
#define FOO_IOCTL3 _IOR('c', 3, struct foo_ioctl_arg)
#define FOO_IOCTL4 _IOW('c', 4, struct foo_ioctl_arg)
#define FOO_IOCTL5 _IOWR('c', 5, struct foo_ioctl_arg)
#define FOO_IOCTL6 _IO('c', 6)
#define FOO_IOCTL7 _IO('c', 7)
#define FOO_IOCTL8 _IO('c', 8)
#define FOO_IOCTL9 _IO('c', 9)

enum {
	FOO_IOCTL10 = _IOR('c', 10, int),
	FOO_IOCTL11 = _IOR('c', 11, int),
};

struct foo_ioctl_arg {
	int a, b;
};