summaryrefslogtreecommitdiffstats
path: root/block/genhd.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-11-14 18:08:21 +0100
committerJens Axboe <axboe@kernel.dk>2020-11-16 08:14:31 -0700
commite2b6b301871719d1db0b1ed7a1ed9e06750c80fc (patch)
tree9b7a14e4818b35034af250d1464a5fe357491e4e /block/genhd.c
parente418de3abcda8b102f737919e830024d1455938f (diff)
downloadlinux-e2b6b301871719d1db0b1ed7a1ed9e06750c80fc.tar.bz2
block: fix the kerneldoc comment for __register_blkdev
Switch the comment to talk about __register_blkdev instead of register_blkdev and document the new probe parameter. Fixes: 3da1a61e7046 ("block: add an optional probe callback to major_names") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/genhd.c')
-rw-r--r--block/genhd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c
index 01d146598fe7..ec2a24799cd9 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -418,11 +418,12 @@ void blkdev_show(struct seq_file *seqf, off_t offset)
#endif /* CONFIG_PROC_FS */
/**
- * register_blkdev - register a new block device
+ * __register_blkdev - register a new block device
*
* @major: the requested major device number [1..BLKDEV_MAJOR_MAX-1]. If
* @major = 0, try to allocate any unused major number.
* @name: the name of the new block device as a zero terminated string
+ * @probe: allback that is called on access to any minor number of @major
*
* The @name must be unique within the system.
*
@@ -436,6 +437,8 @@ void blkdev_show(struct seq_file *seqf, off_t offset)
*
* See Documentation/admin-guide/devices.txt for the list of allocated
* major numbers.
+ *
+ * Use register_blkdev instead for any new code.
*/
int __register_blkdev(unsigned int major, const char *name,
void (*probe)(dev_t devt))