vfs_gpu: VFS plugin that handles GPU completions

When a <gpu> node is present in the VFS, the plugin opens a
Gpu::Connection for each open call to the 'gpu' node and installs a
completion signal handler. A read only to the fd returned only comes
back if a completion signal has been received between two read
transctions to the fd.

For now the Gpu::Connections can be retrieved by calling the
'vfs_gpu_connection(unsigned long id)' function. The id can be obtained
using 'stat' on the 'gpu' device and is located in the inode (st_ino)
field of the stat buffer.

issue #4380
This commit is contained in:
Sebastian Sumpf
2021-10-14 08:59:48 +02:00
committed by Christian Helmuth
parent b7d25636e5
commit b3e12dcece
6 changed files with 206 additions and 0 deletions

View File

@ -0,0 +1,6 @@
SRC_CC = vfs.cc
vpath %.cc $(REP_DIR)/src/lib/vfs/gpu
SHARED_LIB = yes
CC_CXX_WARN_STRICT =