1BLKDEV_GET_BY_PATH(9) The Linux VFS BLKDEV_GET_BY_PATH(9)
2
3
4
6 blkdev_get_by_path - open a block device by name
7
9 struct block_device * blkdev_get_by_path(const char * path,
10 fmode_t mode, void * holder);
11
13 path
14 path to the block device to open
15
16 mode
17 FMODE_* mask
18
19 holder
20 exclusive holder identifier
21
23 Open the blockdevice described by the device file at path. mode and
24 holder are identical to blkdev_get.
25
26 On success, the returned block_device has reference count of one.
27
29 Might sleep.
30
32 Pointer to block_device on success, ERR_PTR(-errno) on failure.
33
35Kernel Hackers Manual 3.10 June 2019 BLKDEV_GET_BY_PATH(9)