_IOC() an internal helper that we should not use in driver code. In particular, we got the data direction wrong here, which breaks a number of tools, as having "_IOC_NONE" should never be paired with a nonzero size. Use _IOW() instead.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -138,6 +138,6 @@ struct privcmd_irqfd { · 137 unmodified lines | |||
| 138 | #define IOCTL_PRIVCMD_MMAP_RESOURCE \ | 138 | #define IOCTL_PRIVCMD_MMAP_RESOURCE \ |
| 139 | _IOC(_IOC_NONE, 'P', 7, sizeof(struct privcmd_mmap_resource)) | 139 | _IOC(_IOC_NONE, 'P', 7, sizeof(struct privcmd_mmap_resource)) |
| 140 | #define IOCTL_PRIVCMD_IRQFD \ | 140 | #define IOCTL_PRIVCMD_IRQFD \ |
| 141 | _IOC(_IOC_NONE, 'P', 8, sizeof(struct privcmd_irqfd)) | 141 | _IOW('P', 8, struct privcmd_irqfd) |
| 142 | 142 | ||
| 143 | #endif /* __LINUX_PUBLIC_PRIVCMD_H__ */ | 143 | #endif /* __LINUX_PUBLIC_PRIVCMD_H__ */ |