Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
evdev.c File Reference
#include <linux/poll.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/input/mt.h>
#include <linux/major.h>
#include <linux/device.h>
#include <linux/cdev.h>
#include "input-compat.h"

Go to the source code of this file.

Data Structures

struct  evdev
 
struct  evdev_client
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define EVDEV_MINOR_BASE   64
 
#define EVDEV_MINORS   32
 
#define EVDEV_MIN_BUFFER_SIZE   64U
 
#define EVDEV_BUF_PACKETS   8
 
#define OLD_KEY_MAX   0x1ff
 
#define EVIOC_MASK_SIZE(nr)   ((nr) & ~(_IOC_SIZEMASK << _IOC_SIZESHIFT))
 

Functions

 MODULE_DEVICE_TABLE (input, evdev_ids)
 
 module_init (evdev_init)
 
 module_exit (evdev_exit)
 
 MODULE_AUTHOR ("Vojtech Pavlik <[email protected]>")
 
 MODULE_DESCRIPTION ("Input driver event char devices")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define EVDEV_BUF_PACKETS   8

Definition at line 16 of file evdev.c.

#define EVDEV_MIN_BUFFER_SIZE   64U

Definition at line 15 of file evdev.c.

#define EVDEV_MINOR_BASE   64

Definition at line 13 of file evdev.c.

#define EVDEV_MINORS   32

Definition at line 14 of file evdev.c.

#define EVIOC_MASK_SIZE (   nr)    ((nr) & ~(_IOC_SIZEMASK << _IOC_SIZESHIFT))
#define OLD_KEY_MAX   0x1ff

Definition at line 540 of file evdev.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 11 of file evdev.c.

Function Documentation

MODULE_AUTHOR ( "Vojtech Pavlik <[email protected]>"  )
MODULE_DESCRIPTION ( "Input driver event char devices )
MODULE_DEVICE_TABLE ( input  ,
evdev_ids   
)
module_exit ( evdev_exit  )
module_init ( evdev_init  )
MODULE_LICENSE ( "GPL"  )