*参照元 [#vc6679f1] #backlinks *説明 [#f03d03a6] -パス: [[linux-4.4.1/]] -パス: [[linux-4.4.1/drivers/media/v4l2-core/videobuf2-v4l2.c]] -FIXME: これは何? --説明 **引数 [#r3d80416] -struct file *file -- --[[linux-4.4.1/file]] -void *priv -- -struct v4l2_requestbuffers *p -- --[[linux-4.4.1/v4l2_requestbuffers]] **返り値 [#l366ddb7] -int -- **参考 [#m5d8f594] *実装 [#b8478c02] int vb2_ioctl_reqbufs(struct file *file, void *priv, struct v4l2_requestbuffers *p) { struct video_device *vdev = video_devdata(file); int res = vb2_verify_memory_type(vdev->queue, p->memory, p->type); - --[[linux-4.4.1/video_device]] --[[linux-4.4.1/video_devdata()]] --[[linux-4.4.1/vb2_verify_memory_type()]] if (res) return res; if (vb2_queue_is_busy(vdev, file)) return -EBUSY; - --[[linux-4.4.1/vb2_queue_is_busy()]] res = vb2_core_reqbufs(vdev->queue, p->memory, &p->count); /* If count == 0, then the owner has released all buffers and he is no longer owner of the queue. Otherwise we have a new owner. */ if (res == 0) vdev->queue->owner = p->count ? file->private_data : NULL; - --[[linux-4.4.1/vb2_core_reqbufs()]] return res; } EXPORT_SYMBOL_GPL(vb2_ioctl_reqbufs); - --[[linux-4.4.1/EXPORT_SYMBOL_GPL()]] *コメント [#w0815b40]