History

ntsync: Introduce NTSYNC_IOC_SEM_POST.

This corresponds to the NT syscall NtReleaseSemaphore(). This increases the semaphore's internal counter by the given value, and returns the previous value. If the counter would overflow the defined maximum, the function instead fails and returns -EOVERFLOW.

Elizabeth Figura committed 2 years ago

Commit dc806bd1 parent b46271e2 files · +71 −3Browse files

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

Unified · Split

include/uapi/linux/ntsync.h+2−0
@@ -18,4 +18,6 @@ struct ntsync_sem_args { · 17 unmodified lines
18 18
19#define NTSYNC_IOC_CREATE_SEM _IOWR('N', 0x80, struct ntsync_sem_args)19#define NTSYNC_IOC_CREATE_SEM _IOWR('N', 0x80, struct ntsync_sem_args)
20 20
21#define NTSYNC_IOC_SEM_POST _IOWR('N', 0x81, __u32)
22
21#endif23#endif