---
name: "disk_get_part"
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/disk_get_part"
---

# disk\_get\_part(9)

get partition

## NAME

disk\_get\_part - get partition

## SYNOPSIS

**struct hd\_struct \* disk\_get\_part(struct gendisk \*** *disk***, int** *partno***);**

## ARGUMENTS

*disk*

disk to look partition from

*partno*

partition number

## DESCRIPTION

Look for partition *partno* from *disk*. If found, increment reference count and return it.

## CONTEXT

Don't care.

## RETURN

Pointer to the found partition on success, NULL if not found.

## COPYRIGHT
