V4L/DVB (9324): v4l2: add video_ioctl2_unlocked for unlocked_ioctl support.
Based on an older patch from Sakari Ailus. Cc: Sakari Ailus <sakari.ailus@nokia.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
f496bc7166
commit
d5fbf32f38
@@ -1861,3 +1861,10 @@ out:
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(video_ioctl2);
|
EXPORT_SYMBOL(video_ioctl2);
|
||||||
|
|
||||||
|
long video_ioctl2_unlocked(struct file *file,
|
||||||
|
unsigned int cmd, unsigned long arg)
|
||||||
|
{
|
||||||
|
return video_ioctl2(file->f_path.dentry->d_inode, file, cmd, arg);
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(video_ioctl2_unlocked);
|
||||||
|
@@ -286,6 +286,8 @@ extern long v4l_compat_ioctl32(struct file *file, unsigned int cmd,
|
|||||||
|
|
||||||
extern int video_ioctl2(struct inode *inode, struct file *file,
|
extern int video_ioctl2(struct inode *inode, struct file *file,
|
||||||
unsigned int cmd, unsigned long arg);
|
unsigned int cmd, unsigned long arg);
|
||||||
|
extern long video_ioctl2_unlocked(struct file *file,
|
||||||
|
unsigned int cmd, unsigned long arg);
|
||||||
|
|
||||||
/* Include support for obsoleted stuff */
|
/* Include support for obsoleted stuff */
|
||||||
extern int video_usercopy(struct inode *inode, struct file *file,
|
extern int video_usercopy(struct inode *inode, struct file *file,
|
||||||
|
Reference in New Issue
Block a user