XenevaOS
Loading...
Searching...
No Matches
sync_file.h
Go to the documentation of this file.
1/*
2 * include/linux/sync_file.h
3 *
4 * Copyright (C) 2012 Google, Inc.
5 *
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.
10 *
11 */
12
13#ifndef _LINUX_SYNC_FILE_H
14#define _LINUX_SYNC_FILE_H
15
16#include <linux/types.h>
17#include <linux/ktime.h>
18#include <linux/list.h>
19#include <linux/spinlock.h>
20#include <linux/dma-fence.h>
22
35struct sync_file {
36 struct file *file;
44 char user_name[32];
45#ifdef CONFIG_DEBUG_FS
46 struct list_head sync_file_list;
47#endif
48
50 unsigned long flags;
51
54};
55
56#define POLL_ENABLED 0
57
60char *sync_file_get_name(struct sync_file *sync_file, char *buf, int len);
61
62#endif /* _LINUX_SYNC_H */
size_t len
Definition initial.c:23
Definition dma-fence.h:127
Definition dma-fence.h:70
Definition file.h:140
Definition fs.h:142
Definition list.h:11
Definition sync_file.h:35
struct file * file
Definition sync_file.h:36
struct dma_fence_cb cb
Definition sync_file.h:53
struct dma_fence * fence
Definition sync_file.h:52
unsigned long flags
Definition sync_file.h:50
wait_queue_head_t wq
Definition sync_file.h:49
char user_name[32]
Definition sync_file.h:44
Definition wait.h:75
char * sync_file_get_name(struct sync_file *sync_file, char *buf, int len)
struct sync_file * sync_file_create(struct dma_fence *fence)
struct dma_fence * sync_file_get_fence(int fd)