aboutsummaryrefslogtreecommitdiffstats
path: root/docs/syscall_descriptions_syntax.md
diff options
context:
space:
mode:
authorRicardo Cañuelo <ricardo.canuelo@collabora.com>2020-06-08 17:11:27 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-06-08 22:21:43 +0200
commit0d60b78a516c83f28e887f39bf211ff1de6d20b6 (patch)
tree2a94b654f8409817c083d1517062a8d555a011ca /docs/syscall_descriptions_syntax.md
parentd6de73316412f133ac0d8011845b7667491e25a1 (diff)
docs: suggested changes for pull-request 1797
https://github.com/google/syzkaller/pull/1797
Diffstat (limited to 'docs/syscall_descriptions_syntax.md')
-rw-r--r--docs/syscall_descriptions_syntax.md27
1 files changed, 8 insertions, 19 deletions
diff --git a/docs/syscall_descriptions_syntax.md b/docs/syscall_descriptions_syntax.md
index 39aa31437..e53acebe7 100644
--- a/docs/syscall_descriptions_syntax.md
+++ b/docs/syscall_descriptions_syntax.md
@@ -170,25 +170,14 @@ listen(fd sock, backlog int32)
Resources don't have to be necessarily returned by a syscall. They can be used as any other data type. For example:
```
-resource fd_request[fd]
-
-ioctl$MEDIA_IOC_REQUEST_ALLOC(fd fd_media, cmd const[MEDIA_IOC_REQUEST_ALLOC], arg ptr[out, fd_request])
-ioctl$VIDIOC_QBUF(fd fd_video, cmd const[VIDIOC_QBUF], arg ptr[inout, v4l2_buffer])
-
-v4l2_buffer {
- index int32
- type flags[v4l2_buf_type, int32]
- bytesused len[type, int32]
- flags const[V4L2_BUF_FLAG_REQUEST_FD, int32]
- field int32
- timestamp timeval
- timecode v4l2_timecode
- sequence int32
- memory flags[v4l2_memory, int32]
- m v4l2_buffer_union
- length int32
- reserved2 const[0, int32]
- request_fd fd_request[opt]
+resource my_resource[int32]
+
+request_producer(..., arg ptr[out, my_resource])
+request_consumer(..., arg ptr[inout, test_struct])
+
+test_struct {
+ ...
+ attr my_resource
}
```