History

ntsync: Return the fd from NTSYNC_IOC_CREATE_SEM.

Simplify the user API a bit by returning the fd as return value from the ioctl instead of through the argument pointer.

Elizabeth Figura committed 1 year ago

Commit d75abf21 parent def35da2 files · +3 −7Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/ntsync.h+1−2
@@ -11,12 +11,11 @@ · 10 unmodified lines
11#include <linux/types.h>11#include <linux/types.h>
12 12
13struct ntsync_sem_args {13struct 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