diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-12-23 17:42:25 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-12-23 17:42:25 +0100 |
commit | 8cf45753ff5b8f410dcb8165cf5c339436153ed8 (patch) | |
tree | 17d346e6685157c942cffd6007426af37804b45a /linux/Documentation/video4linux/v4l2-framework.txt | |
parent | c91fcc9b460397a85a6bd1d8f441d8da5abac415 (diff) | |
download | mediapointer-dvb-s2-8cf45753ff5b8f410dcb8165cf5c339436153ed8.tar.gz mediapointer-dvb-s2-8cf45753ff5b8f410dcb8165cf5c339436153ed8.tar.bz2 |
v4l2 doc: update v4l2-framework.txt
From: Hans Verkuil <hverkuil@xs4all.nl>
Mention the new v4l2_file_operations struct.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/Documentation/video4linux/v4l2-framework.txt')
-rw-r--r-- | linux/Documentation/video4linux/v4l2-framework.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/linux/Documentation/video4linux/v4l2-framework.txt b/linux/Documentation/video4linux/v4l2-framework.txt index 38d054aa0..3b483c1e0 100644 --- a/linux/Documentation/video4linux/v4l2-framework.txt +++ b/linux/Documentation/video4linux/v4l2-framework.txt @@ -392,13 +392,16 @@ You should also set these fields: - v4l2_dev: set to the v4l2_device parent device. - name: set to something descriptive and unique. -- fops: set to the file_operations struct. +- fops: set to the v4l2_file_operations struct. - ioctl_ops: if you use the v4l2_ioctl_ops to simplify ioctl maintenance (highly recommended to use this and it might become compulsory in the future!), then set this to your v4l2_ioctl_ops struct. -If you use v4l2_ioctl_ops, then you should set .unlocked_ioctl to -__video_ioctl2 or .ioctl to video_ioctl2 in your file_operations struct. +If you use v4l2_ioctl_ops, then you should set either .unlocked_ioctl or +.ioctl to video_ioctl2 in your v4l2_file_operations struct. + +The v4l2_file_operations struct is a subset of file_operations. The main +difference is that the inode argument is omitted since it is never used. video_device registration |