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

# scsi\_bios\_ptable(9)

Read PC partition table out of first sector of device.

## NAME

scsi\_bios\_ptable - Read PC partition table out of first sector of device.

## SYNOPSIS

**unsigned char \* scsi\_bios\_ptable(struct block\_device \*** *dev***);**

## ARGUMENTS

*dev*

from this device

## DESCRIPTION

Reads the first sector from the device and returns **0x42** bytes starting at offset **0x1be**.

## RETURN

partition table in kmalloc(GFP\_KERNEL) memory, or NULL on error.

## AUTHORS

**James Bottomley** \<James.Bottomley@hansenpartnership.com\>

Author.

**Rob Landley** \<rob@landley.net\>

Author.

## COPYRIGHT
