Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
lirc_dev.h File Reference
#include <linux/slab.h>
#include <linux/fs.h>
#include <linux/ioctl.h>
#include <linux/poll.h>
#include <linux/kfifo.h>
#include <media/lirc.h>

Go to the source code of this file.

Data Structures

struct  lirc_buffer
 
struct  lirc_driver
 

Macros

#define MAX_IRCTL_DEVICES   8
 
#define BUFLEN   16
 
#define mod(n, div)   ((n) % (div))
 

Functions

int lirc_register_driver (struct lirc_driver *d)
 
int lirc_unregister_driver (int minor)
 
voidlirc_get_pdata (struct file *file)
 
int lirc_dev_fop_open (struct inode *inode, struct file *file)
 
int lirc_dev_fop_close (struct inode *inode, struct file *file)
 
unsigned int lirc_dev_fop_poll (struct file *file, poll_table *wait)
 
long lirc_dev_fop_ioctl (struct file *file, unsigned int cmd, unsigned long arg)
 
ssize_t lirc_dev_fop_read (struct file *file, char __user *buffer, size_t length, loff_t *ppos)
 
ssize_t lirc_dev_fop_write (struct file *file, const char __user *buffer, size_t length, loff_t *ppos)
 

Macro Definition Documentation

#define BUFLEN   16

Definition at line 13 of file lirc_dev.h.

#define MAX_IRCTL_DEVICES   8

Definition at line 12 of file lirc_dev.h.

#define mod (   n,
  div 
)    ((n) % (div))

Definition at line 15 of file lirc_dev.h.

Function Documentation

int lirc_dev_fop_close ( struct inode inode,
struct file file 
)

Definition at line 498 of file lirc_dev.c.

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

Definition at line 564 of file lirc_dev.c.

int lirc_dev_fop_open ( struct inode inode,
struct file file 
)

Definition at line 437 of file lirc_dev.c.

unsigned int lirc_dev_fop_poll ( struct file file,
poll_table wait 
)

Definition at line 532 of file lirc_dev.c.

ssize_t lirc_dev_fop_read ( struct file file,
char __user buffer,
size_t  length,
loff_t *  ppos 
)

Definition at line 648 of file lirc_dev.c.

ssize_t lirc_dev_fop_write ( struct file file,
const char __user buffer,
size_t  length,
loff_t *  ppos 
)

Definition at line 769 of file lirc_dev.c.

void* lirc_get_pdata ( struct file file)

Definition at line 753 of file lirc_dev.c.

int lirc_register_driver ( struct lirc_driver d)

Definition at line 205 of file lirc_dev.c.

int lirc_unregister_driver ( int  minor)

Definition at line 378 of file lirc_dev.c.