-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
winesync: Introduce WINESYNC_IOC_CREATE_SEM and WINESYNC_IOC_DELETE.
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
- Loading branch information
Showing
2 changed files
with
142 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ | ||
/* | ||
* Kernel support for Wine synchronization primitives | ||
* | ||
* Copyright (C) 2021 Zebediah Figura | ||
*/ | ||
|
||
#ifndef __LINUX_WINESYNC_H | ||
#define __LINUX_WINESYNC_H | ||
|
||
#include <linux/types.h> | ||
|
||
struct winesync_sem_args { | ||
__u32 sem; | ||
__u32 count; | ||
__u32 max; | ||
}; | ||
|
||
#define WINESYNC_IOC_BASE 0xf7 | ||
|
||
#define WINESYNC_IOC_CREATE_SEM _IOWR(WINESYNC_IOC_BASE, 0, \ | ||
struct winesync_sem_args) | ||
#define WINESYNC_IOC_DELETE _IOW (WINESYNC_IOC_BASE, 1, __u32) | ||
|
||
#endif |