6 struct file_operations xyz_ops = {
11 identifier fn.xyz_ioctl;
15 static int xyz_ioctl(struct inode *i, ...)
20 @count disable braces1, braces2, braces3, braces4@
21 identifier fn.xyz_ioctl;
32 if (...) return ...; else S
37 @one depends on safe && !count@
38 identifier fn.xyz_ioctl;
39 identifier i, f, cmd, arg;
45 -xyz_ioctl(struct inode *i, struct file *f, unsigned cmd, unsigned long arg)
46 +xyz_ioctl(struct file *f, unsigned cmd, unsigned long arg)
62 identifier fn.xyz_ioctl;
63 expression E1, E2, E3, E4;
66 - xyz_ioctl(E1, E2, E3, E4)
67 + xyz_ioctl(E2, E3, E4)
70 // be sure the changes can be made before transforming
71 // prototype has to be more complicated, because unsigned int can be
78 struct file_operations xyz_ops = {
80 + .unlocked_ioctl = xyz_ioctl,