• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This header was generated from the Linux kernel headers by update_headers.py,
3  * to provide necessary information from kernel to userspace, such as constants,
4  * structures, and macros, and thus, contains no copyrightable information.
5  */
6 #ifndef _UAPI_LINUX_SYNC_H
7 #define _UAPI_LINUX_SYNC_H
8 #include <linux/ioctl.h>
9 #include <linux/types.h>
10 struct sync_merge_data {
11 	char	name[32];
12 	__s32	fd2;
13 	__s32	fence;
14 	__u32	flags;
15 	__u32	pad;
16 };
17 struct sync_fence_info {
18 	char	obj_name[32];
19 	char	driver_name[32];
20 	__s32	status;
21 	__u32	flags;
22 	__u64	timestamp_ns;
23 };
24 struct sync_file_info {
25 	char	name[32];
26 	__s32	status;
27 	__u32	flags;
28 	__u32	num_fences;
29 	__u32	pad;
30 	__u64	sync_fence_info;
31 };
32 #define SYNC_IOC_MAGIC		'>'
33 #define SYNC_IOC_MERGE		_IOWR(SYNC_IOC_MAGIC, 3, struct sync_merge_data)
34 #define SYNC_IOC_FILE_INFO	_IOWR(SYNC_IOC_MAGIC, 4, struct sync_file_info)
35 #endif
36