diff options
author | Sergey Senozhatsky <senozhatsky@chromium.org> | 2021-09-09 13:24:29 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-09-30 10:07:57 +0200 |
commit | c0acf9cfeee061f041fab778dbdcb34b6ca5e2e7 (patch) | |
tree | e30af680eb9ce6bfaa6bdae802905f7ab5ffe963 /fs/fs_struct.c | |
parent | b00a9e59c539684d9e105feafaeee36df11ee493 (diff) | |
download | linux-c0acf9cfeee061f041fab778dbdcb34b6ca5e2e7.tar.gz |
media: videobuf2: handle V4L2_MEMORY_FLAG_NON_COHERENT flag
This patch lets user-space request a non-coherent memory allocation during CREATE_BUFS and REQBUFS ioctl calls. = CREATE_BUFS struct v4l2_create_buffers has seven 4-byte reserved areas, so reserved[0] is renamed to ->flags. The struct, thus, now has six reserved 4-byte regions. = CREATE_BUFS32 struct v4l2_create_buffers32 has seven 4-byte reserved areas, so reserved[0] is renamed to ->flags. The struct, thus, now has six reserved 4-byte regions. = REQBUFS We use one byte of a 4 byte ->reserved[1] member of struct v4l2_requestbuffers. The struct, thus, now has reserved 3 bytes. Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'fs/fs_struct.c')
0 files changed, 0 insertions, 0 deletions