---
name: "scsicam_bios_param"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/scsicam_bios_param"
---

# scsicam\_bios\_param(9)

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

## NAME

scsicam\_bios\_param - Determine geometry of a disk in cylinders/heads/sectors.

## SYNOPSIS

**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

## DESCRIPTION

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.

## AUTHORS

**James Bottomley** \<James.Bottomley@hansenpartnership.com\>

Author.

**Rob Landley** \<rob@landley.net\>

Author.

## COPYRIGHT
