SCSI_PARTSIZE(9) | SCSI mid layer | SCSI_PARTSIZE(9) |
NAME¶
scsi_partsize - Parse cylinders/heads/sectors from PC partition table
SYNOPSIS¶
int scsi_partsize(unsigned char * buf, unsigned long capacity, unsigned int * cyls, unsigned int * hds, unsigned int * secs);
ARGUMENTS¶
unsigned char * buf
unsigned long capacity
unsigned int * cyls
unsigned int * hds
unsigned int * secs
DESCRIPTION¶
determine the BIOS mapping/geometry used to create the partition table, storing the results in *cyls, *hds, and *secs
RETURN¶
-1 on failure, 0 on success.
AUTHORS¶
James Bottomley <James.Bottomley@hansenpartnership.com>
Rob Landley <rob@landley.net>
COPYRIGHT¶
September 2017 | Kernel Hackers Manual 4.12 |