X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fcdev.h;h=1e29b13d00621ee32fcb50f1e08b4dd93b62afcd;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=f1996ec09e9616b565b714de5689f199399e0f0f;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/linux/cdev.h b/include/linux/cdev.h index f1996ec09..1e29b13d0 100644 --- a/include/linux/cdev.h +++ b/include/linux/cdev.h @@ -2,28 +2,36 @@ #define _LINUX_CDEV_H #ifdef __KERNEL__ +#include +#include +#include + +struct file_operations; +struct inode; +struct module; + struct cdev { struct kobject kobj; struct module *owner; - struct file_operations *ops; + const struct file_operations *ops; struct list_head list; dev_t dev; unsigned int count; }; -void cdev_init(struct cdev *, struct file_operations *); +void cdev_init(struct cdev *, const struct file_operations *); struct cdev *cdev_alloc(void); void cdev_put(struct cdev *p); -struct kobject *cdev_get(struct cdev *); - int cdev_add(struct cdev *, dev_t, unsigned); void cdev_del(struct cdev *); void cd_forget(struct inode *); +extern struct backing_dev_info directly_mappable_cdev_bdi; + #endif #endif