Blame view
include/linux/cdev.h
639 Bytes
1da177e4c Linux-2.6.12-rc2 |
1 2 |
#ifndef _LINUX_CDEV_H #define _LINUX_CDEV_H |
1da177e4c Linux-2.6.12-rc2 |
3 |
|
5ec68b2e3 [PATCH] pull in n... |
4 5 6 |
#include <linux/kobject.h> #include <linux/kdev_t.h> #include <linux/list.h> |
3d8b3036f [PATCH] cdev.h: f... |
7 8 9 |
struct file_operations; struct inode; struct module; |
1da177e4c Linux-2.6.12-rc2 |
10 11 12 |
struct cdev { struct kobject kobj; struct module *owner; |
99ac48f54 [PATCH] mark f_op... |
13 |
const struct file_operations *ops; |
1da177e4c Linux-2.6.12-rc2 |
14 15 16 17 |
struct list_head list; dev_t dev; unsigned int count; }; |
99ac48f54 [PATCH] mark f_op... |
18 |
void cdev_init(struct cdev *, const struct file_operations *); |
1da177e4c Linux-2.6.12-rc2 |
19 20 21 22 23 24 25 26 27 28 |
struct cdev *cdev_alloc(void); void cdev_put(struct cdev *p); int cdev_add(struct cdev *, dev_t, unsigned); void cdev_del(struct cdev *); void cd_forget(struct inode *); |
5da6185bc [PATCH] NOMMU: Se... |
29 |
extern struct backing_dev_info directly_mappable_cdev_bdi; |
1da177e4c Linux-2.6.12-rc2 |
30 |
#endif |