4 #include <linux/kobject.h>
5 #include <linux/kdev_t.h>
6 #include <linux/list.h>
7 #include <linux/device.h>
9 struct file_operations
;
16 const struct file_operations
*ops
;
17 struct list_head list
;
22 void cdev_init(struct cdev
*, const struct file_operations
*);
24 struct cdev
*cdev_alloc(void);
26 void cdev_put(struct cdev
*p
);
28 int cdev_add(struct cdev
*, dev_t
, unsigned);
30 void cdev_set_parent(struct cdev
*p
, struct kobject
*kobj
);
31 int cdev_device_add(struct cdev
*cdev
, struct device
*dev
);
32 void cdev_device_del(struct cdev
*cdev
, struct device
*dev
);
34 void cdev_del(struct cdev
*);
36 void cd_forget(struct inode
*);