summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-03-22 07:34:20 -0800
committerDavid S. Miller <davem@kernel.bkbits.net>2003-03-22 07:34:20 -0800
commitc2e562b9bc90940c4c17b4126899ceb418b78b0c (patch)
treebcc9beee6f4f812036e0bbf990da2f13097bdef2 /include/linux
parentc290f965192fa988ec844ba7f869023ab1f7e1dd (diff)
[PATCH] dev_t [1/3]: kill cdev
Patch from Andries.Brouwer@cwi.nl Now that 2.5.65 is out, the next dev_t patch. It was a bit large and unreadable, so I split it into three clean pieces. Afterwards, since many people ask for this, a fourth patch that actually changes the type of dev_t (not to be applied yet, that is just for playing). The first patch is the cdev-kill patch that I sent out earlier. It is no use having two forms of chardev registration in the source, and my version of the path of small modifications does not pass through this version, although the final result will not be that different. So, kill cdev_cachep, cdev_cache_init, cdfind, cdget, cdput, inode->i_cdev, struct char_device. All of this is dead code today. The second patch removes MAX_CHRDEV. The third patch polishes linux/major.h.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fs.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index b2619fef5d85..8a436118c17a 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -331,12 +331,6 @@ struct address_space {
struct address_space *assoc_mapping; /* ditto */
};
-struct char_device {
- struct list_head hash;
- atomic_t count;
- dev_t dev;
-};
-
struct block_device {
struct list_head bd_hash;
atomic_t bd_count;
@@ -388,7 +382,6 @@ struct inode {
struct list_head i_devices;
struct pipe_inode_info *i_pipe;
struct block_device *i_bdev;
- struct char_device *i_cdev;
unsigned long i_dnotify_mask; /* Directory notify events */
struct dnotify_struct *i_dnotify; /* for directory notifications */
@@ -1046,8 +1039,6 @@ extern struct block_device *bdget(dev_t);
extern int bd_acquire(struct inode *inode);
extern void bd_forget(struct inode *inode);
extern void bdput(struct block_device *);
-extern struct char_device *cdget(dev_t);
-extern void cdput(struct char_device *);
extern int blkdev_open(struct inode *, struct file *);
extern int blkdev_close(struct inode *, struct file *);
extern struct file_operations def_blk_fops;