mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
dma-buf: add poll support, v3
Thanks to Fengguang Wu for spotting a missing static cast. v2: - Kill unused variable need_shared. v3: - Clarify the BUG() in dma_buf_release some more. (Rob Clark) Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Acked-by: Sumit Semwal <sumit.semwal@linaro.org> Acked-by: Daniel Vetter <daniel@ffwll.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0ba6b8fb91
commit
9b495a5887
2 changed files with 120 additions and 0 deletions
|
@ -30,6 +30,8 @@
|
|||
#include <linux/list.h>
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <linux/fs.h>
|
||||
#include <linux/fence.h>
|
||||
#include <linux/wait.h>
|
||||
|
||||
struct device;
|
||||
struct dma_buf;
|
||||
|
@ -130,6 +132,16 @@ struct dma_buf {
|
|||
struct list_head list_node;
|
||||
void *priv;
|
||||
struct reservation_object *resv;
|
||||
|
||||
/* poll support */
|
||||
wait_queue_head_t poll;
|
||||
|
||||
struct dma_buf_poll_cb_t {
|
||||
struct fence_cb cb;
|
||||
wait_queue_head_t *poll;
|
||||
|
||||
unsigned long active;
|
||||
} cb_excl, cb_shared;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue