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

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

 



On Thu 28 June 2012 11:27:26 Scott Jiang wrote:
> > +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

Thanks!

I wasn't aware there was a vb2_fop_get_unmapped_area(). :-)

Regards,

	Hans
--
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