We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0994c64 commit 057178cCopy full SHA for 057178c
block/bdev.c
@@ -964,9 +964,11 @@ EXPORT_SYMBOL(blkdev_put);
964
* @pathname: special file representing the block device
965
* @dev: return value of the block device's dev_t
966
*
967
- * Get a reference to the blockdevice at @pathname in the current
968
- * namespace if possible and return it. Return ERR_PTR(error)
969
- * otherwise.
+ * Lookup the block device's dev_t at @pathname in the current
+ * namespace if possible and return it by @dev.
+ *
970
+ * RETURNS:
971
+ * 0 if succeeded, errno otherwise.
972
*/
973
int lookup_bdev(const char *pathname, dev_t *dev)
974
{
0 commit comments