ui: Get the fd associated with udmabuf driver
commit87f12216d9268ed90e6114a22cbc3f53b0fd8457
authorVivek Kasireddy <vivek.kasireddy@intel.com>
Wed, 26 May 2021 23:14:16 +0000 (26 16:14 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 27 May 2021 10:06:01 +0000 (27 12:06 +0200)
treed63c5588b99b1f856f7d4ee9438fef50b6d58771
parentce7015d9e8669e2a45aba7a95fe6ef8a8f55bfe0
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>
include/ui/console.h
ui/meson.build
ui/udmabuf.c [new file with mode: 0644]