diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-26 14:31:08 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-26 14:31:08 +0000 |
commit | 39f77adb32b2939a0c5ffd2cbbe0600a0a83e00b (patch) | |
tree | 47e05bb5540a16acff6c8305b81a9fcbf1eb3445 /linux/include | |
parent | b522fa7672e6981c4b6649106e2ce67e9a512670 (diff) | |
download | mediapointer-dvb-s2-39f77adb32b2939a0c5ffd2cbbe0600a0a83e00b.tar.gz mediapointer-dvb-s2-39f77adb32b2939a0c5ffd2cbbe0600a0a83e00b.tar.bz2 |
allow v4l2 drivers to provide a get_unmapped_area handler
From: Daniel Glöckner <dg@emlix.com>
Shared memory mappings on nommu machines require a get_unmapped_area
file operation that suggests an address for the mapping. This patch
adds a way for v4l2 drivers to provide this callback.
Signed-off-by: Daniel Glöckner <dg@emlix.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/include')
-rw-r--r-- | linux/include/media/v4l2-dev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/include/media/v4l2-dev.h b/linux/include/media/v4l2-dev.h index 96b4ea2d9..978e26506 100644 --- a/linux/include/media/v4l2-dev.h +++ b/linux/include/media/v4l2-dev.h @@ -40,6 +40,8 @@ struct v4l2_file_operations { unsigned int (*poll) (struct file *, struct poll_table_struct *); long (*ioctl) (struct file *, unsigned int, unsigned long); long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long); + unsigned long (*get_unmapped_area) (struct file *, unsigned long, + unsigned long, unsigned long, unsigned long); int (*mmap) (struct file *, struct vm_area_struct *); int (*open) (struct file *); int (*release) (struct file *); |