bdget_disk
Prev | Chapter 14. Block Devices | Next

## Name

bdget_disk — do `bdget` by gendisk and partition number

## Synopsis

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

## Arguments

`disk`

  gendisk of interest

`partno`

  partition number

## Description

Find partition `partno` from `disk`, do `bdget` on it.

## CONTEXT

Don't care.

## RETURNS

Resulting block_device on success, NULL on failure.

Prev | Up | Next
get_gendisk | Home | Chapter 15. Char devices