Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dvbdev.c File Reference
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/fs.h>
#include <linux/cdev.h>
#include <linux/mutex.h>
#include "dvbdev.h"

Go to the source code of this file.

Macros

#define dprintk   if (dvbdev_debug) printk
 
#define DVB_MAX_IDS   4
 
#define nums2minor(num, type, id)   ((num << 6) | (id << 4) | type)
 
#define MAX_DVB_MINORS   (DVB_MAX_ADAPTERS*64)
 

Functions

 module_param (dvbdev_debug, int, 0644)
 
 MODULE_PARM_DESC (dvbdev_debug,"Turn on/off device debugging (default:off).")
 
int dvb_generic_open (struct inode *inode, struct file *file)
 
 EXPORT_SYMBOL (dvb_generic_open)
 
int dvb_generic_release (struct inode *inode, struct file *file)
 
 EXPORT_SYMBOL (dvb_generic_release)
 
long dvb_generic_ioctl (struct file *file, unsigned int cmd, unsigned long arg)
 
 EXPORT_SYMBOL (dvb_generic_ioctl)
 
int dvb_register_device (struct dvb_adapter *adap, struct dvb_device **pdvbdev, const struct dvb_device *template, void *priv, int type)
 
 EXPORT_SYMBOL (dvb_register_device)
 
void dvb_unregister_device (struct dvb_device *dvbdev)
 
 EXPORT_SYMBOL (dvb_unregister_device)
 
int dvb_register_adapter (struct dvb_adapter *adap, const char *name, struct module *module, struct device *device, short *adapter_nums)
 
 EXPORT_SYMBOL (dvb_register_adapter)
 
int dvb_unregister_adapter (struct dvb_adapter *adap)
 
 EXPORT_SYMBOL (dvb_unregister_adapter)
 
int dvb_usercopy (struct file *file, unsigned int cmd, unsigned long arg, int(*func)(struct file *file, unsigned int cmd, void *arg))
 
 subsys_initcall (init_dvbdev)
 
 module_exit (exit_dvbdev)
 
 MODULE_DESCRIPTION ("DVB Core Driver")
 
 MODULE_AUTHOR ("Marcus Metzler, Ralph Metzler, Holger Waechtler")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define dprintk   if (dvbdev_debug) printk

Definition at line 43 of file dvbdev.c.

#define DVB_MAX_IDS   4

Definition at line 57 of file dvbdev.c.

#define MAX_DVB_MINORS   (DVB_MAX_ADAPTERS*64)

Definition at line 59 of file dvbdev.c.

#define nums2minor (   num,
  type,
  id 
)    ((num << 6) | (id << 4) | type)

Definition at line 58 of file dvbdev.c.

Function Documentation

long dvb_generic_ioctl ( struct file file,
unsigned int  cmd,
unsigned long  arg 
)

Definition at line 158 of file dvbdev.c.

int dvb_generic_open ( struct inode inode,
struct file file 
)

Definition at line 113 of file dvbdev.c.

int dvb_generic_release ( struct inode inode,
struct file file 
)

Definition at line 139 of file dvbdev.c.

int dvb_register_adapter ( struct dvb_adapter adap,
const char name,
struct module module,
struct device device,
short adapter_nums 
)

Definition at line 320 of file dvbdev.c.

int dvb_register_device ( struct dvb_adapter adap,
struct dvb_device **  pdvbdev,
const struct dvb_device template,
void priv,
int  type 
)

Definition at line 191 of file dvbdev.c.

int dvb_unregister_adapter ( struct dvb_adapter adap)

Definition at line 368 of file dvbdev.c.

void dvb_unregister_device ( struct dvb_device dvbdev)

Definition at line 277 of file dvbdev.c.

int dvb_usercopy ( struct file file,
unsigned int  cmd,
unsigned long  arg,
int(*)(struct file *file, unsigned int cmd, void *arg func 
)

Definition at line 382 of file dvbdev.c.

EXPORT_SYMBOL ( dvb_generic_open  )
EXPORT_SYMBOL ( dvb_generic_release  )
EXPORT_SYMBOL ( dvb_generic_ioctl  )
EXPORT_SYMBOL ( dvb_register_device  )
EXPORT_SYMBOL ( dvb_unregister_device  )
EXPORT_SYMBOL ( dvb_register_adapter  )
EXPORT_SYMBOL ( dvb_unregister_adapter  )
MODULE_AUTHOR ( "Marcus  Metzler,
Ralph  Metzler,
Holger Waechtler"   
)
MODULE_DESCRIPTION ( "DVB Core Driver"  )
module_exit ( exit_dvbdev  )
MODULE_LICENSE ( "GPL"  )
module_param ( dvbdev_debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( dvbdev_debug  ,
"Turn on/off device debugging (default:off)."   
)
subsys_initcall ( init_dvbdev  )