]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - include/linux/sync_file.h
2 * include/linux/sync_file.h
4 * Copyright (C) 2012 Google, Inc.
6 * This program is distributed in the hope that it will be useful,
7 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 * GNU General Public License for more details.
13 #ifndef _LINUX_SYNC_FILE_H
14 #define _LINUX_SYNC_FILE_H
16 #include <linux/types.h>
17 #include <linux/kref.h>
18 #include <linux/ktime.h>
19 #include <linux/list.h>
20 #include <linux/spinlock.h>
21 #include <linux/fence.h>
26 struct sync_file
*sync_file
;
30 * struct sync_file - sync file to export to the userspace
31 * @file: file representing this fence
32 * @kref: reference count on fence.
33 * @name: name of sync_file. Useful for debugging
34 * @sync_file_list: membership in global file list
35 * @num_fences: number of sync_pts in the fence
36 * @wq: wait queue for fence signaling
37 * @status: 0: signaled, >0:active, <0: error
38 * @cbs: sync_pts callback information
44 #ifdef CONFIG_DEBUG_FS
45 struct list_head sync_file_list
;
52 struct sync_file_cb cbs
[];
55 struct sync_file
*sync_file_create(struct fence
*fence
);
57 #endif /* _LINUX_SYNC_H */