BLKDEV_GET_BY_PATH(9) The Linux VFS BLKDEV_GET_BY_PATH(9)NAMEblkdev_get_by_path - open a block device by name
struct block_device * blkdev_get_by_path(const char * path,
fmode_t mode, void * holder);
path to the block device to open
exclusive holder identifier
Open the blockdevice described by the device file at path. mode and
holder are identical to blkdev_get.
On success, the returned block_device has reference count of one.
Pointer to block_device on success, ERR_PTR(-errno) on failure.
COPYRIGHTKernel Hackers Manual 3.8. June 2014 BLKDEV_GET_BY_PATH(9)