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); }
/* * Get unmapped area. * * NO-MMU arch need this function to make mmap() work correctly. */ unsigned long uvcg_queue_get_unmapped_area(struct uvc_video_queue *queue, unsigned long pgoff) { unsigned long ret; mutex_lock(&queue->mutex); ret = vb2_get_unmapped_area(&queue->queue, 0, 0, pgoff, 0); mutex_unlock(&queue->mutex); return ret; }
/* * Get unmapped area. * * NO-MMU arch need this function to make mmap() work correctly. */ unsigned long uvcg_queue_get_unmapped_area(struct uvc_video_queue *queue, unsigned long pgoff) { return vb2_get_unmapped_area(&queue->queue, 0, 0, pgoff, 0); }