From 0d60b78a516c83f28e887f39bf211ff1de6d20b6 Mon Sep 17 00:00:00 2001 From: Ricardo CaƱuelo Date: Mon, 8 Jun 2020 17:11:27 +0200 Subject: docs: suggested changes for pull-request 1797 https://github.com/google/syzkaller/pull/1797 --- docs/syscall_descriptions_syntax.md | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) (limited to 'docs/syscall_descriptions_syntax.md') 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 } ``` -- cgit mrf-deployment