1. NAME

scsi_partsize - Parse cylinders/heads/sectors from PC partition table

2. SYNOPSIS

int scsi_partsize(unsigned char *  buf , unsigned long  capacity , unsigned int *  cyls , unsigned int *  hds , unsigned int *  secs );

3. ARGUMENTS

buf
    partition table, see scsi_bios_ptable

capacity
    size of the disk in sectors

cyls
    put cylinders here

hds
    put heads here

secs
    put sectors here

4. DESCRIPTION

determine the BIOS mapping/geometry used to create the partition table, storing the results in *cyls, *hds, and *secs

5. RETURNS

-1 on failure, 0 on success.

6. AUTHORS

James Bottomley <>
    Author.

Rob Landley <>
    Author.

7. COPYRIGHT