Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ctimap.h
Go to the documentation of this file.
1 
19 #ifndef CTIMAP_H
20 #define CTIMAP_H
21 
22 #include <linux/list.h>
23 
24 struct imapper {
25  unsigned short slot; /* the id of the slot containing input data */
26  unsigned short user; /* the id of the user resource consuming data */
27  unsigned short addr; /* the input mapper ram id */
28  unsigned short next; /* the next input mapper ram id */
29  struct list_head list;
30 };
31 
32 int input_mapper_add(struct list_head *mappers, struct imapper *entry,
33  int (*map_op)(void *, struct imapper *), void *data);
34 
35 int input_mapper_delete(struct list_head *mappers, struct imapper *entry,
36  int (*map_op)(void *, struct imapper *), void *data);
37 
38 void free_input_mapper_list(struct list_head *mappers);
39 
40 #endif /* CTIMAP_H */