提交 dd1ad942 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

V4L/DVB: v4l2-framework.txt: fix incorrect statement

After unregister_device all fileops are blocked, except for ioctls.
So it is not just the open that is blocked, others are as well.
Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 626e2acf
...@@ -545,12 +545,11 @@ unregister them: ...@@ -545,12 +545,11 @@ unregister them:
This will remove the device nodes from sysfs (causing udev to remove them This will remove the device nodes from sysfs (causing udev to remove them
from /dev). from /dev).
After video_unregister_device() returns no new opens can be done. After video_unregister_device() returns no new opens can be done. However,
in the case of USB devices some application might still have one of these
However, in the case of USB devices some application might still have one device nodes open. So after the unregister all file operations will return
of these device nodes open. You should block all new accesses to read, an error as well, except for the ioctl and unlocked_ioctl file operations:
write, poll, etc. except possibly for certain ioctl operations like those will still be passed on since some buffer ioctls may still be needed.
queueing buffers.
When the last user of the video device node exits, then the vdev->release() When the last user of the video device node exits, then the vdev->release()
callback is called and you can do the final cleanup there. callback is called and you can do the final cleanup there.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册