Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
input-polldev.h File Reference
#include <linux/input.h>
#include <linux/workqueue.h>

Go to the source code of this file.

Functions

struct input_polled_dev * input_allocate_polled_device (void)
 
void input_free_polled_device (struct input_polled_dev *dev)
 
int input_register_polled_device (struct input_polled_dev *dev)
 
void input_unregister_polled_device (struct input_polled_dev *dev)
 

Function Documentation

struct input_polled_dev* input_allocate_polled_device ( void  )
read

input_allocate_polled_device - allocate memory for polled device

The function allocates memory for a polled device and also for an input device associated with this polled device.

Definition at line 156 of file input-polldev.c.

void input_free_polled_device ( struct input_polled_dev *  dev)

input_free_polled_device - free memory allocated for polled device : device to free

The function frees memory allocated for polling device and drops reference to the associated input device.

Definition at line 181 of file input-polldev.c.

int input_register_polled_device ( struct input_polled_dev *  dev)

input_register_polled_device - register polled device : device to register

The function registers previously initialized polled input device with input layer. The device should be allocated with call to input_allocate_polled_device(). Callers should also set up poll() method and set up capabilities (id, name, phys, bits) of the corresponding input_dev structure.

Definition at line 200 of file input-polldev.c.

void input_unregister_polled_device ( struct input_polled_dev *  dev)

input_unregister_polled_device - unregister polled device : device to unregister

The function unregisters previously registered polled input device from input layer. Polling is stopped and device is ready to be freed with call to input_free_polled_device().

Definition at line 246 of file input-polldev.c.