Blame view
include/media/videobuf2-memops.h
1.08 KB
004cc3781 [media] v4l: vide... |
1 2 3 4 5 |
/* * videobuf2-memops.h - generic memory handling routines for videobuf2 * * Copyright (C) 2010 Samsung Electronics * |
950720840 [media] Update Pa... |
6 |
* Author: Pawel Osciak <pawel@osciak.com> |
004cc3781 [media] v4l: vide... |
7 8 9 10 11 12 13 14 15 |
* Marek Szyprowski <m.szyprowski@samsung.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation. */ #ifndef _MEDIA_VIDEOBUF2_MEMOPS_H #define _MEDIA_VIDEOBUF2_MEMOPS_H |
c139990e8 [media] media: vi... |
16 |
#include <media/videobuf2-v4l2.h> |
21fb0cb7e [media] vb2: Prov... |
17 |
#include <linux/mm.h> |
6c4bb65d0 [media] vb2: conv... |
18 |
#include <linux/refcount.h> |
004cc3781 [media] v4l: vide... |
19 20 |
/** |
9fbe71b4d media: vb2: add c... |
21 |
* struct vb2_vmarea_handler - common vma refcount tracking handler. |
b6836a6fb [media] videobuf2... |
22 |
* |
9fbe71b4d media: vb2: add c... |
23 24 25 |
* @refcount: pointer to &refcount_t entry in the buffer. * @put: callback to function that decreases buffer refcount. * @arg: argument for @put callback. |
004cc3781 [media] v4l: vide... |
26 27 |
*/ struct vb2_vmarea_handler { |
6c4bb65d0 [media] vb2: conv... |
28 |
refcount_t *refcount; |
004cc3781 [media] v4l: vide... |
29 30 31 32 33 |
void (*put)(void *arg); void *arg; }; extern const struct vm_operations_struct vb2_common_vm_ops; |
21fb0cb7e [media] vb2: Prov... |
34 |
struct frame_vector *vb2_create_framevec(unsigned long start, |
707947247 media: videobuf2-... |
35 |
unsigned long length); |
21fb0cb7e [media] vb2: Prov... |
36 |
void vb2_destroy_framevec(struct frame_vector *vec); |
004cc3781 [media] v4l: vide... |
37 38 |
#endif |