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

# get\_gendisk(9)

get partitioning information for a given device

## NAME

get\_gendisk - get partitioning information for a given device

## SYNOPSIS

**struct gendisk \* get\_gendisk(dev\_t** *devt***, int \*** *partno***);**

## ARGUMENTS

*devt*

device to get partitioning information for

*partno*

returned partition index

## DESCRIPTION

This function gets the structure containing partitioning information for the given device *devt*.

## COPYRIGHT
