videobuf2-v4l2.h (f26e8817b235d8764363bffcc9cbfc61867371f2) | videobuf2-v4l2.h (c23e0cb81e4021b9712b1093d54713991fd9b7c2) |
---|---|
1/* 2 * videobuf2-v4l2.h - V4L2 driver helper framework 3 * 4 * Copyright (C) 2010 Samsung Electronics 5 * 6 * Author: Pawel Osciak <pawel@osciak.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 212 unchanged lines hidden (view full) --- 221 * will be reported as available for writing. 222 * 223 * If the driver uses struct v4l2_fh, then vb2_poll() will also check for any 224 * pending events. 225 * 226 * The return values from this function are intended to be directly returned 227 * from poll handler in driver. 228 */ | 1/* 2 * videobuf2-v4l2.h - V4L2 driver helper framework 3 * 4 * Copyright (C) 2010 Samsung Electronics 5 * 6 * Author: Pawel Osciak <pawel@osciak.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 212 unchanged lines hidden (view full) --- 221 * will be reported as available for writing. 222 * 223 * If the driver uses struct v4l2_fh, then vb2_poll() will also check for any 224 * pending events. 225 * 226 * The return values from this function are intended to be directly returned 227 * from poll handler in driver. 228 */ |
229unsigned int vb2_poll(struct vb2_queue *q, struct file *file, 230 poll_table *wait); | 229__poll_t vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait); |
231 232/* 233 * The following functions are not part of the vb2 core API, but are simple 234 * helper functions that you can use in your struct v4l2_file_operations, 235 * struct v4l2_ioctl_ops and struct vb2_ops. They will serialize if vb2_queue->lock 236 * or video_device->lock is set, and they will set and test vb2_queue->owner 237 * to check if the calling filehandle is permitted to do the queuing operation. 238 */ --- 18 unchanged lines hidden (view full) --- 257 258int vb2_fop_mmap(struct file *file, struct vm_area_struct *vma); 259int vb2_fop_release(struct file *file); 260int _vb2_fop_release(struct file *file, struct mutex *lock); 261ssize_t vb2_fop_write(struct file *file, const char __user *buf, 262 size_t count, loff_t *ppos); 263ssize_t vb2_fop_read(struct file *file, char __user *buf, 264 size_t count, loff_t *ppos); | 230 231/* 232 * The following functions are not part of the vb2 core API, but are simple 233 * helper functions that you can use in your struct v4l2_file_operations, 234 * struct v4l2_ioctl_ops and struct vb2_ops. They will serialize if vb2_queue->lock 235 * or video_device->lock is set, and they will set and test vb2_queue->owner 236 * to check if the calling filehandle is permitted to do the queuing operation. 237 */ --- 18 unchanged lines hidden (view full) --- 256 257int vb2_fop_mmap(struct file *file, struct vm_area_struct *vma); 258int vb2_fop_release(struct file *file); 259int _vb2_fop_release(struct file *file, struct mutex *lock); 260ssize_t vb2_fop_write(struct file *file, const char __user *buf, 261 size_t count, loff_t *ppos); 262ssize_t vb2_fop_read(struct file *file, char __user *buf, 263 size_t count, loff_t *ppos); |
265unsigned int vb2_fop_poll(struct file *file, poll_table *wait); | 264__poll_t vb2_fop_poll(struct file *file, poll_table *wait); |
266#ifndef CONFIG_MMU 267unsigned long vb2_fop_get_unmapped_area(struct file *file, unsigned long addr, 268 unsigned long len, unsigned long pgoff, unsigned long flags); 269#endif 270 271/** 272 * vb2_ops_wait_prepare - helper function to lock a struct &vb2_queue 273 * --- 16 unchanged lines hidden --- | 265#ifndef CONFIG_MMU 266unsigned long vb2_fop_get_unmapped_area(struct file *file, unsigned long addr, 267 unsigned long len, unsigned long pgoff, unsigned long flags); 268#endif 269 270/** 271 * vb2_ops_wait_prepare - helper function to lock a struct &vb2_queue 272 * --- 16 unchanged lines hidden --- |