1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 /* 2 /* 3 * Kernel support for NT synchronization primi 3 * Kernel support for NT synchronization primitive emulation 4 * 4 * 5 * Copyright (C) 2021-2022 Elizabeth Figura <z 5 * Copyright (C) 2021-2022 Elizabeth Figura <zfigura@codeweavers.com> 6 */ 6 */ 7 7 8 #ifndef __LINUX_NTSYNC_H 8 #ifndef __LINUX_NTSYNC_H 9 #define __LINUX_NTSYNC_H 9 #define __LINUX_NTSYNC_H 10 10 11 #include <linux/types.h> 11 #include <linux/types.h> 12 12 13 struct ntsync_sem_args { 13 struct ntsync_sem_args { 14 __u32 sem; 14 __u32 sem; 15 __u32 count; 15 __u32 count; 16 __u32 max; 16 __u32 max; 17 }; 17 }; 18 18 19 #define NTSYNC_IOC_CREATE_SEM _IOWR( 19 #define NTSYNC_IOC_CREATE_SEM _IOWR('N', 0x80, struct ntsync_sem_args) 20 20 21 #define NTSYNC_IOC_SEM_POST _IOWR( 21 #define NTSYNC_IOC_SEM_POST _IOWR('N', 0x81, __u32) 22 22 23 #endif 23 #endif 24 24
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.