Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
videobuf-vmalloc.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/vmalloc.h>
#include <linux/pagemap.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <media/videobuf-vmalloc.h>

Go to the source code of this file.


#define MAGIC_DMABUF   0x17760309
#define MAGIC_VMAL_MEM   0x18221223
#define MAGIC_CHECK(is, should)
#define dprintk(level, fmt, arg...)


 module_param (debug, int, 0644)
 MODULE_DESCRIPTION ("helper module to manage video4linux vmalloc buffers")
 MODULE_AUTHOR ("Mauro Carvalho Chehab <[email protected]>")
void videobuf_queue_vmalloc_init (struct videobuf_queue *q, const struct videobuf_queue_ops *ops, struct device *dev, spinlock_t *irqlock, enum v4l2_buf_type type, enum v4l2_field field, unsigned int msize, void *priv, struct mutex *ext_lock)
 EXPORT_SYMBOL_GPL (videobuf_queue_vmalloc_init)
voidvideobuf_to_vmalloc (struct videobuf_buffer *buf)
 EXPORT_SYMBOL_GPL (videobuf_to_vmalloc)
void videobuf_vmalloc_free (struct videobuf_buffer *buf)
 EXPORT_SYMBOL_GPL (videobuf_vmalloc_free)

Macro Definition Documentation

#define dprintk (   level,
if (debug >= level) \
printk(KERN_DEBUG "vbuf-vmalloc: " fmt , ## arg)

Definition at line 47 of file videobuf-vmalloc.c.

#define MAGIC_CHECK (   is,
if (unlikely((is) != (should))) { \
printk(KERN_ERR "magic mismatch: %x (expected %x)\n", \
is, should); \
BUG(); \

Definition at line 33 of file videobuf-vmalloc.c.

#define MAGIC_DMABUF   0x17760309

Definition at line 30 of file videobuf-vmalloc.c.

#define MAGIC_VMAL_MEM   0x18221223

Definition at line 31 of file videobuf-vmalloc.c.

Function Documentation

EXPORT_SYMBOL_GPL ( videobuf_queue_vmalloc_init  )
EXPORT_SYMBOL_GPL ( videobuf_to_vmalloc  )
EXPORT_SYMBOL_GPL ( videobuf_vmalloc_free  )
MODULE_AUTHOR ( "Mauro Carvalho Chehab <[email protected]>"  )
MODULE_DESCRIPTION ( "helper module to manage video4linux vmalloc buffers"  )
module_param ( debug  ,
int  ,
void videobuf_queue_vmalloc_init ( struct videobuf_queue q,
const struct videobuf_queue_ops ops,
struct device dev,
spinlock_t irqlock,
enum v4l2_buf_type  type,
enum v4l2_field  field,
unsigned int  msize,
void priv,
struct mutex ext_lock 

Definition at line 300 of file videobuf-vmalloc.c.

void* videobuf_to_vmalloc ( struct videobuf_buffer buf)

Definition at line 315 of file videobuf-vmalloc.c.

void videobuf_vmalloc_free ( struct videobuf_buffer buf)

Definition at line 325 of file videobuf-vmalloc.c.