blob: 2028da48683ef2b84e5a1292c13715dbcf00a44f [file] [log] [blame]
Christopher Ferris7ac54f52024-08-07 21:07:12 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
7#ifndef __LINUX_NTSYNC_H
8#define __LINUX_NTSYNC_H
9#include <linux/types.h>
10struct ntsync_sem_args {
Christopher Ferris7ac54f52024-08-07 21:07:12 +000011 __u32 count;
12 __u32 max;
13};
Christopher Ferrisa714b622025-04-07 15:22:55 -070014struct ntsync_mutex_args {
15 __u32 owner;
16 __u32 count;
17};
18struct ntsync_event_args {
19 __u32 manual;
20 __u32 signaled;
21};
22#define NTSYNC_WAIT_REALTIME 0x1
23struct ntsync_wait_args {
24 __u64 timeout;
25 __u64 objs;
26 __u32 count;
27 __u32 index;
28 __u32 flags;
29 __u32 owner;
30 __u32 alert;
31 __u32 pad;
32};
33#define NTSYNC_MAX_WAIT_COUNT 64
34#define NTSYNC_IOC_CREATE_SEM _IOW('N', 0x80, struct ntsync_sem_args)
35#define NTSYNC_IOC_WAIT_ANY _IOWR('N', 0x82, struct ntsync_wait_args)
36#define NTSYNC_IOC_WAIT_ALL _IOWR('N', 0x83, struct ntsync_wait_args)
37#define NTSYNC_IOC_CREATE_MUTEX _IOW('N', 0x84, struct ntsync_mutex_args)
38#define NTSYNC_IOC_CREATE_EVENT _IOW('N', 0x87, struct ntsync_event_args)
39#define NTSYNC_IOC_SEM_RELEASE _IOWR('N', 0x81, __u32)
40#define NTSYNC_IOC_MUTEX_UNLOCK _IOWR('N', 0x85, struct ntsync_mutex_args)
41#define NTSYNC_IOC_MUTEX_KILL _IOW('N', 0x86, __u32)
42#define NTSYNC_IOC_EVENT_SET _IOR('N', 0x88, __u32)
43#define NTSYNC_IOC_EVENT_RESET _IOR('N', 0x89, __u32)
44#define NTSYNC_IOC_EVENT_PULSE _IOR('N', 0x8a, __u32)
45#define NTSYNC_IOC_SEM_READ _IOR('N', 0x8b, struct ntsync_sem_args)
46#define NTSYNC_IOC_MUTEX_READ _IOR('N', 0x8c, struct ntsync_mutex_args)
47#define NTSYNC_IOC_EVENT_READ _IOR('N', 0x8d, struct ntsync_event_args)
Christopher Ferris7ac54f52024-08-07 21:07:12 +000048#endif