summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2003-04-20 00:41:20 -0700
committerChristoph Hellwig <hch@lst.de>2003-04-20 00:41:20 -0700
commit02da7e62d509ae482ef59bd16bbe745fae24ca93 (patch)
treefb8738fc107e2eab25dec361de8b82a98b56bffc /include/linux
parent9a3957738b940cc437fea90bdb434b4d7eee157c (diff)
[PATCH] devfs: introduce devfs_mk_bdev
Replaces devfs_register for block devices. Note that we do NOT pass in an operaion vector here - it was unused in devfs_register already and our block device code fundamentally ties the operations to the gendisk. There will be only very few callers of this one anyway..
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/devfs_fs_kernel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/devfs_fs_kernel.h b/include/linux/devfs_fs_kernel.h
index 24ad37027b73..e19d6d1ec733 100644
--- a/include/linux/devfs_fs_kernel.h
+++ b/include/linux/devfs_fs_kernel.h
@@ -25,6 +25,8 @@ extern devfs_handle_t devfs_register (devfs_handle_t dir, const char *name,
unsigned int flags,
unsigned int major, unsigned int minor,
umode_t mode, void *ops, void *info);
+extern int devfs_mk_bdev(dev_t dev, umode_t mode, const char *fmt, ...)
+ __attribute__((format (printf, 3, 4)));
extern int devfs_mk_symlink (const char *name, const char *link);
extern devfs_handle_t devfs_mk_dir(const char *fmt, ...)
__attribute__((format (printf, 1, 2)));
@@ -49,6 +51,10 @@ static inline devfs_handle_t devfs_register (devfs_handle_t dir,
{
return NULL;
}
+static inline int devfs_mk_bdev(dev_t dev, umode_t mode, const char *fmt, ...)
+{
+ return 0;
+}
static inline int devfs_mk_symlink (const char *name, const char *link)
{
return 0;