aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/dev_udmabuf.txt
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2019-02-01 01:08:17 +0100
committerAndrey Konovalov <andreyknvl@gmail.com>2019-02-01 14:40:17 +0100
commit9f528bbcc8a3d94c9be27a0eecc12022d4b3bfaa (patch)
tree59bcdb899b42ba9d793d5bbac6cf58a4a9132143 /sys/linux/dev_udmabuf.txt
parentaa53be276dc84aa8b3825b3416542447ff82b41a (diff)
sys/linux: rename dev descriptions files
Prefix file names of descriptions of /dev/* files with dev_. And give some of them more appropriate names.
Diffstat (limited to 'sys/linux/dev_udmabuf.txt')
-rw-r--r--sys/linux/dev_udmabuf.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/sys/linux/dev_udmabuf.txt b/sys/linux/dev_udmabuf.txt
new file mode 100644
index 000000000..16c2b4366
--- /dev/null
+++ b/sys/linux/dev_udmabuf.txt
@@ -0,0 +1,33 @@
+# Copyright 2018 syzkaller project authors. All rights reserved.
+# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+include <uapi/linux/udmabuf.h>
+
+resource fd_udambuf[fd]
+
+openat$udambuf(fd const[AT_FDCWD], file ptr[in, string["/dev/udmabuf"]], flags const[O_RDWR]) fd_udambuf
+ioctl$UDMABUF_CREATE(fd fd_udambuf, cmd const[UDMABUF_CREATE], arg ptr[in, udmabuf_create])
+ioctl$UDMABUF_CREATE_LIST(fd fd_udambuf, cmd const[UDMABUF_CREATE_LIST], arg ptr[in, udmabuf_create_list])
+
+udmabuf_create {
+ memfd fd_memfd
+ flags bool32
+ offset flags[udmabuf_offset_size, int64]
+ size flags[udmabuf_offset_size, int64]
+}
+
+udmabuf_create_list {
+ flags bool32
+ count len[list, int32]
+ list array[udmabuf_create_item]
+}
+
+udmabuf_create_item {
+ memfd fd_memfd
+ __pad const[0, int32]
+ offset flags[udmabuf_offset_size, int64]
+ size flags[udmabuf_offset_size, int64]
+}
+
+# NEED: this should be a page-aligned integer
+udmabuf_offset_size = 0, 0x1000, 0x2000, 0x4000, 0x8000, 0x10000, 0x1000000, 0x100000000, 0xfffff000, 0x1000000000000, 0xfffffffffffff000, 0xfffffffff0000000