X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fcdev.h;h=1e29b13d00621ee32fcb50f1e08b4dd93b62afcd;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=8da37e29cb877177208e0e51821a72a2e9c72927;hpb=76828883507a47dae78837ab5dec5a5b4513c667;p=linux-2.6.git diff --git a/include/linux/cdev.h b/include/linux/cdev.h index 8da37e29c..1e29b13d0 100644 --- a/include/linux/cdev.h +++ b/include/linux/cdev.h @@ -2,16 +2,24 @@ #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); @@ -23,5 +31,7 @@ void cdev_del(struct cdev *); void cd_forget(struct inode *); +extern struct backing_dev_info directly_mappable_cdev_bdi; + #endif #endif