scsicam_bios_param(9)

scsicam_bios_param9

Determine geometry of a disk in cylinders/heads/sectors.

Usage

int scsicam_bios_param(struct block_device * bdev, sector_t capacity, int * ip);

Arguments

bdev

which device

capacity

size of the disk in sectors

ip

return value: ip[0]=heads, ip[1]=sectors, ip[2]=cylinders

Overview

determine the BIOS mapping/geometry used for a drive in a SCSI-CAM system, storing the results in ip as required by the HDIO_GETGEO ioctl.

Return

-1 on failure, 0 on success.

Releases

5 releases since Debian 5.0 (Lenny); the text changed 4 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9

Authors

James Bottomley <[email protected]>

Author.

Rob Landley <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.