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.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -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 | #endif | 23 | #endif |