lookup_bdev
Prev | Other Functions | Next

## Name

lookup_bdev — lookup a struct block_device by name

## Synopsis

`struct block_device * lookup_bdev (` | const char * pathname`)`;

## Arguments

`pathname`

  special file representing the block device

## Description

Get a reference to the blockdevice at `pathname` in the current namespace if possible and return it. Return ERR_PTR(error) otherwise.

Prev | Up | Next
blkdev_get_by_dev | Home | Chapter 2. The proc filesystem