---
name: "bdget_disk"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/bdget_disk"
---

# bdget\_disk(9)

do bdget by gendisk and partition number

## 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.

## RETURN

Resulting block\_device on success, NULL on failure.

## COPYRIGHT
