'\" t .\" Title: scsi_partsize .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: SCSI mid layer .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SCSI_PARTSIZE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "SCSI mid layer" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" scsi_partsize \- Parse cylinders/heads/sectors from PC partition table .SH "SYNOPSIS" .HP \w'int\ scsi_partsize('u .BI "int scsi_partsize(unsigned\ char\ *\ " "buf" ", unsigned\ long\ " "capacity" ", unsigned\ int\ *\ " "cyls" ", unsigned\ int\ *\ " "hds" ", unsigned\ int\ *\ " "secs" ");" .SH "ARGUMENTS" .PP \fIbuf\fR .RS 4 partition table, see \fBscsi_bios_ptable\fR .RE .PP \fIcapacity\fR .RS 4 size of the disk in sectors .RE .PP \fIcyls\fR .RS 4 put cylinders here .RE .PP \fIhds\fR .RS 4 put heads here .RE .PP \fIsecs\fR .RS 4 put sectors here .RE .SH "DESCRIPTION" .PP determine the BIOS mapping/geometry used to create the partition table, storing the results in *cyls, *hds, and *secs .SH "RETURN" .PP \-1 on failure, 0 on success\&. .SH "AUTHORS" .PP \fBJames Bottomley\fR <\&James.Bottomley@hansenpartnership.com\&> .RS 4 Author. .RE .PP \fBRob Landley\fR <\&rob@landley.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br