Query: blkdev_get_by_dev
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
BLKDEV_GET_BY_DEV(9) The Linux VFS BLKDEV_GET_BY_DEV(9)NAMEblkdev_get_by_dev - open a block device by device numberSYNOPSISstruct block_device * blkdev_get_by_dev(dev_t dev, fmode_t mode, void * holder);ARGUMENTSdev device number of block device to open mode FMODE_* mask holder exclusive holder identifierDESCRIPTIONOpen the blockdevice described by device number dev. mode and holder are identical to blkdev_get. Use it ONLY if you really do not have anything better - i.e. when you are behind a truly sucky interface and all you are given is a device number. _Never_ to be used for internal purposes. If you ever need it - reconsider your API. On success, the returned block_device has reference count of one.CONTEXTMight sleep.RETURNSPointer to block_device on success, ERR_PTR(-errno) on failure.COPYRIGHTKernel Hackers Manual 3.10 June 2014 BLKDEV_GET_BY_DEV(9)
Related Man Pages |
---|
device_create(9) - centos |
struct_bus_type(9) - centos |
struct_device_driver(9) - centos |
device_create(9) - suse |
minor(3) - freebsd |
Similar Topics in the Unix Linux Community |
---|
Is UNIX an open source OS ? |
Weird 'find' results |
How to increment version inside a file? |
DB2 convert digits to binary format |
CentOS7 restoring file capabilities |