• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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 _UAPI_LINUX_SYNC_H
8 #define _UAPI_LINUX_SYNC_H
9 #include <linux/ioctl.h>
10 #include <linux/types.h>
11 struct sync_merge_data {
12   char name[32];
13   __s32 fd2;
14   __s32 fence;
15   __u32 flags;
16   __u32 pad;
17 };
18 struct sync_fence_info {
19   char obj_name[32];
20   char driver_name[32];
21   __s32 status;
22   __u32 flags;
23   __u64 timestamp_ns;
24 };
25 struct sync_file_info {
26   char name[32];
27   __s32 status;
28   __u32 flags;
29   __u32 num_fences;
30   __u32 pad;
31   __u64 sync_fence_info;
32 };
33 struct sync_set_deadline {
34   __u64 deadline_ns;
35   __u64 pad;
36 };
37 #define SYNC_IOC_MAGIC '>'
38 #define SYNC_IOC_MERGE _IOWR(SYNC_IOC_MAGIC, 3, struct sync_merge_data)
39 #define SYNC_IOC_FILE_INFO _IOWR(SYNC_IOC_MAGIC, 4, struct sync_file_info)
40 #define SYNC_IOC_SET_DEADLINE _IOW(SYNC_IOC_MAGIC, 5, struct sync_set_deadline)
41 #endif
42