Simplify the user API a bit by returning the fd as return value from the ioctl instead of through the argument pointer.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -11,12 +11,11 @@ · 10 unmodified lines | |||
| 11 | #include <linux/types.h> | 11 | #include <linux/types.h> |
| 12 | 12 | ||
| 13 | struct ntsync_sem_args { | 13 | struct ntsync_sem_args { |
| 14 | __u32 sem; | ||
| 15 | __u32 count; | 14 | __u32 count; |
| 16 | __u32 max; | 15 | __u32 max; |
| 17 | }; | 16 | }; |
| 18 | 17 | ||
| 19 | #define NTSYNC_IOC_CREATE_SEM _IOWR('N', 0x80, struct ntsync_sem_args) | 18 | #define NTSYNC_IOC_CREATE_SEM _IOW ('N', 0x80, struct ntsync_sem_args) |
| 20 | 19 | ||
| 21 | #define NTSYNC_IOC_SEM_POST _IOWR('N', 0x81, __u32) | 20 | #define NTSYNC_IOC_SEM_POST _IOWR('N', 0x81, __u32) |
| 22 | 21 | ||