Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
comedi_fops.c File Reference
#include "comedi_compat32.h"
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/fcntl.h>
#include <linux/delay.h>
#include <linux/ioport.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/kmod.h>
#include <linux/poll.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/vmalloc.h>
#include <linux/fs.h>
#include "comedidev.h"
#include <linux/cdev.h>
#include <linux/stat.h>
#include <linux/io.h>
#include <linux/uaccess.h>
#include "comedi_internal.h"

Go to the source code of this file.

Macros

#define __NO_VERSION__
 
#define TIMER_nanosec   5 /* backwards compatibility */
 
#define MAX_SAMPLES   256
 

Functions

 MODULE_AUTHOR ("http://www.comedi.org")
 
 MODULE_DESCRIPTION ("Comedi core module")
 
 MODULE_LICENSE ("GPL")
 
 module_param (comedi_autoconfig, bool, S_IRUGO)
 
 MODULE_PARM_DESC (comedi_autoconfig,"enable drivers to auto-configure comedi devices (default 1)")
 
 module_param (comedi_num_legacy_minors, int, S_IRUGO)
 
 MODULE_PARM_DESC (comedi_num_legacy_minors,"number of comedi minor devices to reserve for non-auto-configured devices (default 0)")
 
 module_param (comedi_default_buf_size_kb, uint, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (comedi_default_buf_size_kb,"default asynchronous buffer size in KiB (default "__MODULE_STRING(CONFIG_COMEDI_DEFAULT_BUF_SIZE_KB)")")
 
 module_param (comedi_default_buf_maxsize_kb, uint, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (comedi_default_buf_maxsize_kb,"default maximum size of asynchronous buffer in KiB (default "__MODULE_STRING(CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB)")")
 
 module_init (comedi_init)
 
 module_exit (comedi_cleanup)
 
void comedi_error (const struct comedi_device *dev, const char *s)
 
 EXPORT_SYMBOL (comedi_error)
 
void comedi_event (struct comedi_device *dev, struct comedi_subdevice *s)
 
 EXPORT_SYMBOL (comedi_event)
 
unsigned comedi_get_subdevice_runflags (struct comedi_subdevice *s)
 
 EXPORT_SYMBOL (comedi_get_subdevice_runflags)
 
int comedi_alloc_board_minor (struct device *hardware_device)
 
void comedi_free_board_minor (unsigned minor)
 
int comedi_find_board_minor (struct device *hardware_device)
 
int comedi_alloc_subdevice_minor (struct comedi_device *dev, struct comedi_subdevice *s)
 
void comedi_free_subdevice_minor (struct comedi_subdevice *s)
 
struct comedi_device_file_infocomedi_get_device_file_info (unsigned minor)
 
 EXPORT_SYMBOL_GPL (comedi_get_device_file_info)
 

Variables

bool comedi_autoconfig = 1
 
unsigned int comedi_default_buf_size_kb = CONFIG_COMEDI_DEFAULT_BUF_SIZE_KB
 
unsigned int comedi_default_buf_maxsize_kb = CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB
 

Macro Definition Documentation

#define __NO_VERSION__

Definition at line 26 of file comedi_fops.c.

#define MAX_SAMPLES   256

Definition at line 762 of file comedi_fops.c.

#define TIMER_nanosec   5 /* backwards compatibility */

Function Documentation

int comedi_alloc_board_minor ( struct device hardware_device)

Definition at line 2393 of file comedi_fops.c.

int comedi_alloc_subdevice_minor ( struct comedi_device dev,
struct comedi_subdevice s 
)

Definition at line 2475 of file comedi_fops.c.

void comedi_error ( const struct comedi_device dev,
const char s 
)

Definition at line 2295 of file comedi_fops.c.

void comedi_event ( struct comedi_device dev,
struct comedi_subdevice s 
)

Definition at line 2301 of file comedi_fops.c.

int comedi_find_board_minor ( struct device hardware_device)

Definition at line 2458 of file comedi_fops.c.

void comedi_free_board_minor ( unsigned  minor)

Definition at line 2434 of file comedi_fops.c.

void comedi_free_subdevice_minor ( struct comedi_subdevice s)

Definition at line 2512 of file comedi_fops.c.

struct comedi_device_file_info* comedi_get_device_file_info ( unsigned  minor)
read

Definition at line 2536 of file comedi_fops.c.

unsigned comedi_get_subdevice_runflags ( struct comedi_subdevice s)

Definition at line 2344 of file comedi_fops.c.

EXPORT_SYMBOL ( comedi_error  )
EXPORT_SYMBOL ( comedi_event  )
EXPORT_SYMBOL ( comedi_get_subdevice_runflags  )
EXPORT_SYMBOL_GPL ( comedi_get_device_file_info  )
MODULE_AUTHOR ( "http://www.comedi.org"  )
MODULE_DESCRIPTION ( "Comedi core module )
module_exit ( comedi_cleanup  )
module_init ( comedi_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( comedi_autoconfig  ,
bool  ,
S_IRUGO   
)
module_param ( comedi_num_legacy_minors  ,
int  ,
S_IRUGO   
)
module_param ( comedi_default_buf_size_kb  ,
uint  ,
S_IRUGO S_IWUSR 
)
module_param ( comedi_default_buf_maxsize_kb  ,
uint  ,
S_IRUGO S_IWUSR 
)
MODULE_PARM_DESC ( comedi_autoconfig  ,
"enable drivers to auto-configure comedi devices (default 1)"   
)
MODULE_PARM_DESC ( comedi_num_legacy_minors  ,
"number of comedi minor devices to reserve for non-auto-configured devices (default 0)"   
)
MODULE_PARM_DESC ( comedi_default_buf_size_kb  ,
"default asynchronous buffer size in KiB (default "__MODULE_STRING(CONFIG_COMEDI_DEFAULT_BUF_SIZE_KB)")"   
)
MODULE_PARM_DESC ( comedi_default_buf_maxsize_kb  ,
"default maximum size of asynchronous buffer in KiB (default "__MODULE_STRING(CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB)")"   
)

Variable Documentation

bool comedi_autoconfig = 1

Definition at line 66 of file comedi_fops.c.

unsigned int comedi_default_buf_maxsize_kb = CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB

Definition at line 84 of file comedi_fops.c.

unsigned int comedi_default_buf_size_kb = CONFIG_COMEDI_DEFAULT_BUF_SIZE_KB

Definition at line 77 of file comedi_fops.c.