// 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; };