![]() |
|
|||
0001 /* 0002 * videobuf2-memops.h - generic memory handling routines for videobuf2 0003 * 0004 * Copyright (C) 2010 Samsung Electronics 0005 * 0006 * Author: Pawel Osciak <pawel@osciak.com> 0007 * Marek Szyprowski <m.szyprowski@samsung.com> 0008 * 0009 * This program is free software; you can redistribute it and/or modify 0010 * it under the terms of the GNU General Public License as published by 0011 * the Free Software Foundation. 0012 */ 0013 0014 #ifndef _MEDIA_VIDEOBUF2_MEMOPS_H 0015 #define _MEDIA_VIDEOBUF2_MEMOPS_H 0016 0017 #include <media/videobuf2-v4l2.h> 0018 #include <linux/mm.h> 0019 #include <linux/refcount.h> 0020 0021 /** 0022 * struct vb2_vmarea_handler - common vma refcount tracking handler. 0023 * 0024 * @refcount: pointer to &refcount_t entry in the buffer. 0025 * @put: callback to function that decreases buffer refcount. 0026 * @arg: argument for @put callback. 0027 */ 0028 struct vb2_vmarea_handler { 0029 refcount_t *refcount; 0030 void (*put)(void *arg); 0031 void *arg; 0032 }; 0033 0034 extern const struct vm_operations_struct vb2_common_vm_ops; 0035 0036 struct frame_vector *vb2_create_framevec(unsigned long start, 0037 unsigned long length); 0038 void vb2_destroy_framevec(struct frame_vector *vec); 0039 0040 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |