summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>2003-04-27 03:47:21 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-04-27 03:47:21 -0700
commit80e96b51bbd4cd4a10402fe4a274bfb105057e06 (patch)
treeee57194cf6d5de0d285966d56e81cd1e7c73d3ab /include/linux
parent259f529f1f956cf9e87a32bd25d5ee5be4829f2d (diff)
[PATCH] open_by_devnum()
New helper - open_by_devnum(). Opens block_device by device number; for use in situations when we really have nothing better than dev_t (i.e. had received it from stupid userland API).
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 9b1e07ff267b..26aa1bd539f1 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1041,6 +1041,7 @@ extern void bd_forget(struct inode *inode);
extern void bdput(struct block_device *);
extern int blkdev_open(struct inode *, struct file *);
extern int blkdev_close(struct inode *, struct file *);
+extern struct block_device *open_by_devnum(dev_t, unsigned, int);
extern struct file_operations def_blk_fops;
extern struct address_space_operations def_blk_aops;
extern struct file_operations def_chr_fops;