diff options
| author | Vivek Kasireddy | 2021-05-27 01:14:16 +0200 |
|---|---|---|
| committer | Gerd Hoffmann | 2021-05-27 12:06:01 +0200 |
| commit | 87f12216d9268ed90e6114a22cbc3f53b0fd8457 (patch) | |
| tree | d63c5588b99b1f856f7d4ee9438fef50b6d58771 /include/ui | |
| parent | hw/display/qxl: Set pci rom address aligned with page size (diff) | |
| download | qemu-87f12216d9268ed90e6114a22cbc3f53b0fd8457.tar.gz qemu-87f12216d9268ed90e6114a22cbc3f53b0fd8457.tar.xz qemu-87f12216d9268ed90e6114a22cbc3f53b0fd8457.zip | |
ui: Get the fd associated with udmabuf driver
Try to open the udmabuf dev node for the first time or return the
fd if the device was previously opened.
Based-on-patch-by: Gerd Hoffmann <kraxel@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
Message-Id: <20210526231429.1045476-2-vivek.kasireddy@intel.com>
[ kraxel: fixup fcntl.h include ]
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/ui')
| -rw-r--r-- | include/ui/console.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ui/console.h b/include/ui/console.h index ca3c7af6a6..b30b63976a 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -471,4 +471,7 @@ bool vnc_display_reload_certs(const char *id, Error **errp); /* input.c */ int index_from_key(const char *key, size_t key_length); +/* udmabuf.c */ +int udmabuf_fd(void); + #endif |
