1BLKDEV_GET_BY_PATH(9)            The Linux VFS           BLKDEV_GET_BY_PATH(9)
2
3
4

NAME

6       blkdev_get_by_path - open a block device by name
7

SYNOPSIS

9       struct block_device * blkdev_get_by_path(const char * path,
10                                                fmode_t mode, void * holder);
11

ARGUMENTS

13       path
14           path to the block device to open
15
16       mode
17           FMODE_* mask
18
19       holder
20           exclusive holder identifier
21

DESCRIPTION

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

CONTEXT

29       Might sleep.
30

RETURNS

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)
Impressum