1SCSI_PARTSIZE(9) SCSI mid layer SCSI_PARTSIZE(9)
2
3
4
6 scsi_partsize - Parse cylinders/heads/sectors from PC partition table
7
9 int scsi_partsize(unsigned char * buf, unsigned long capacity,
10 unsigned int * cyls, unsigned int * hds,
11 unsigned int * secs);
12
14 buf
15 partition table, see scsi_bios_ptable
16
17 capacity
18 size of the disk in sectors
19
20 cyls
21 put cylinders here
22
23 hds
24 put heads here
25
26 secs
27 put sectors here
28
30 determine the BIOS mapping/geometry used to create the partition table,
31 storing the results in *cyls, *hds, and *secs
32
34 -1 on failure, 0 on success.
35
37 James Bottomley <James.Bottomley@hansenpartnership.com>
38 Author.
39
40 Rob Landley <rob@landley.net>
41 Author.
42
44Kernel Hackers Manual 2.6. November 2011 SCSI_PARTSIZE(9)