bios_param
Name
bios_param -- fetch head, sector, cylinder info for a disk
Synopsis
int bios_param
(struct scsi_device * sdev, struct block_device * bdev, sector_t capacity, int params[3]);
Arguments
sdev
pointer to scsi device context (defined in
include/scsi/scsi_device.h)
bdev
pointer to block device context (defined in fs.h)
capacity
device size (in 512 byte sectors)
params[3]
three element array to place output:
params[0] number of heads (max 255)
params[1] number of sectors (max 63)
params[2] number of cylinders
Description
Return value is ignored
Calling context
process (sd)
Notes
an arbitrary geometry (based on READ CAPACITY) is used
if this function is not provided. The params array is
pre-initialized with made up values just in case this function
doesn't output anything.
Optionally defined in
LLD