diff options
| author | Elizabeth Figura <[email protected]> | 2024-03-28 19:05:54 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-04-11 15:34:40 +0200 |
| commit | dc806bd48abc1b8a4ae72709a37e65db42a32048 (patch) | |
| tree | b97968122adb50ba7d96a9e02a07c9556035245c /include/uapi/linux | |
| parent | b46271ec40a05580d55f917c9ac52cb93553160a (diff) | |
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.
Signed-off-by: Elizabeth Figura <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/ntsync.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/ntsync.h b/include/uapi/linux/ntsync.h index 6a4867a6c97b..dcfa38fdc93c 100644 --- a/include/uapi/linux/ntsync.h +++ b/include/uapi/linux/ntsync.h @@ -18,4 +18,6 @@ struct ntsync_sem_args { #define NTSYNC_IOC_CREATE_SEM _IOWR('N', 0x80, struct ntsync_sem_args) +#define NTSYNC_IOC_SEM_POST _IOWR('N', 0x81, __u32) + #endif |