]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - include/linux/cdev.h
[PATCH] ufs: reallocation fix
[mirror_ubuntu-artful-kernel.git] / include / linux / cdev.h
CommitLineData
1da177e4
LT
1#ifndef _LINUX_CDEV_H
2#define _LINUX_CDEV_H
3#ifdef __KERNEL__
4
5ec68b2e
JE
5#include <linux/kobject.h>
6#include <linux/kdev_t.h>
7#include <linux/list.h>
8
1da177e4
LT
9struct cdev {
10 struct kobject kobj;
11 struct module *owner;
99ac48f5 12 const struct file_operations *ops;
1da177e4
LT
13 struct list_head list;
14 dev_t dev;
15 unsigned int count;
16};
17
99ac48f5 18void cdev_init(struct cdev *, const struct file_operations *);
1da177e4
LT
19
20struct cdev *cdev_alloc(void);
21
22void cdev_put(struct cdev *p);
23
24int cdev_add(struct cdev *, dev_t, unsigned);
25
26void cdev_del(struct cdev *);
27
28void cd_forget(struct inode *);
29
5da6185b
DH
30extern struct backing_dev_info directly_mappable_cdev_bdi;
31
1da177e4
LT
32#endif
33#endif