lookup_bdev(9)

lookup_bdev9

Lookup a struct block_device by name

Usage

struct block_device * lookup_bdev(const char * pathname);

Arguments

pathname

special file representing the block device

Overview

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

Releases

4 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0
  2. 7
  3. 8
  4. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.