---
name: "ata_std_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/ata_std_bios_param"
---

# ata\_std\_bios\_param(9)

generic bios head/sector/cylinder calculator used by sd.

## NAME

ata\_std\_bios\_param - generic bios head/sector/cylinder calculator used by sd.

## SYNOPSIS

**int ata\_std\_bios\_param(struct scsi\_device \*** *sdev***, struct block\_device \*** *bdev***, sector\_t** *capacity***, int** *geom\[\]***);**

## ARGUMENTS

*sdev*

SCSI device for which BIOS geometry is to be determined

*bdev*

block device associated with *sdev*

*capacity*

capacity of SCSI device

*geom\[\]*

location to which geometry will be output

## DESCRIPTION

Generic bios head/sector/cylinder calculator used by sd. Most BIOSes nowadays expect a XXX/255/16 (CHS) mapping. Some situations may arise where the disk is not bootable if this is not used.

LOCKING: Defined by the SCSI layer. We don't really care.

## RETURN

Zero.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
