bdget_disk(9)

bdget_disk9

Do bdget by gendisk and partition number

Usage

struct block_device * bdget_disk(struct gendisk * disk, int partno);

Arguments

disk

gendisk of interest

partno

partition number

Overview

Find partition partno from disk, do bdget on it.

Context

Don't care.

Return

Resulting block_device on success, NULL on failure.

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.