1SCSICAM_BIOS_PARAM(9)           SCSI mid layer           SCSICAM_BIOS_PARAM(9)
2
3
4

NAME

6       scsicam_bios_param - Determine geometry of a disk in
7       cylinders/heads/sectors.
8

SYNOPSIS

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

ARGUMENTS

14       bdev
15           which device
16
17       capacity
18           size of the disk in sectors
19
20       ip
21           return value: ip[0]=heads, ip[1]=sectors, ip[2]=cylinders
22

DESCRIPTION

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

RETURNS

28       -1 on failure, 0 on success.
29

AUTHORS

31       James Bottomley <James.Bottomley@hansenpartnership.com>
32           Author.
33
34       Rob Landley <rob@landley.net>
35           Author.
36
38Kernel Hackers Manual 3.10         June 2019             SCSICAM_BIOS_PARAM(9)
Impressum