Re: [RFCv3 PATCH 26/33] videobuf2-core: add helper functions.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +int vb2_fop_mmap(struct file *file, struct vm_area_struct *vma)
> +{
> +       struct video_device *vdev = video_devdata(file);
> +
> +       return vb2_mmap(vdev->queue, vma);
> +}
> +EXPORT_SYMBOL_GPL(vb2_fop_mmap);
Missed one file ops.

#ifndef CONFIG_MMU
unsigned long vb2_fop_get_unmapped_area(struct file *file,

 unsigned long addr,

 unsigned long len,

 unsigned long pgoff,

 unsigned long flags)
{
        struct video_device *vdev = video_devdata(file);

        return vb2_get_unmapped_area(vdev->queue,
                                                             addr,
                                                             len,
                                                             pgoff,
                                                             flags);
}
EXPORT_SYMBOL_GPL(vb2_fop_get_unmapped_area);
#endif

Scott
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux