aboutsummaryrefslogtreecommitdiff
path: root/include/render/dmabuf.h
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-12-01 11:29:30 +0100
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-12-06 14:54:09 +0000
commit30219cf76b0c497783a3d04e1613504468e49dc7 (patch)
tree064f50ddf478021c5901063fc384e4df2eb054f7 /include/render/dmabuf.h
parent825f1b2dc6886071939f9b8b9738392cd8966cab (diff)
render/dmabuf: add dmabuf_export_sync_file()
Diffstat (limited to 'include/render/dmabuf.h')
-rw-r--r--include/render/dmabuf.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/render/dmabuf.h b/include/render/dmabuf.h
index 4e82a99f..3d905ce9 100644
--- a/include/render/dmabuf.h
+++ b/include/render/dmabuf.h
@@ -23,4 +23,13 @@ bool dmabuf_check_sync_file_import_export(void);
*/
bool dmabuf_import_sync_file(int dmabuf_fd, uint32_t flags, int sync_file_fd);
+/**
+ * Export a sync_file from a DMA-BUF with DMA_BUF_IOCTL_EXPORT_SYNC_FILE.
+ *
+ * The sync_file FD is returned on success, -1 is returned on error.
+ *
+ * This can be used to make explicit sync interoperate with implicit sync.
+ */
+int dmabuf_export_sync_file(int dmabuf_fd, uint32_t flags);
+
#endif