Merge branch 'cfq-2.6.33' into for-2.6.33
[linux-2.6/next.git] / include / linux / cdev.h
blobf389e319a454e0f4d4c2a69ff248a269480ee340
1 #ifndef _LINUX_CDEV_H
2 #define _LINUX_CDEV_H
4 #include <linux/kobject.h>
5 #include <linux/kdev_t.h>
6 #include <linux/list.h>
8 struct file_operations;
9 struct inode;
10 struct module;
12 struct cdev {
13 struct kobject kobj;
14 struct module *owner;
15 const struct file_operations *ops;
16 struct list_head list;
17 dev_t dev;
18 unsigned int count;
21 void cdev_init(struct cdev *, const struct file_operations *);
23 struct cdev *cdev_alloc(void);
25 void cdev_put(struct cdev *p);
27 int cdev_add(struct cdev *, dev_t, unsigned);
29 void cdev_del(struct cdev *);
31 int cdev_index(struct inode *inode);
33 void cd_forget(struct inode *);
35 extern struct backing_dev_info directly_mappable_cdev_bdi;
37 #endif