Index Index for
Section 9
Index Alphabetical
listing for I
Bottom of page Bottom of
page

invent_geometry(9r)

NAME

invent_geometry - Disk: Calculates device geometry information

SYNOPSIS

int invent_geometry( struct DEVGEOMST *geom );

ARGUMENTS

geom Specifies a pointer to the disk's geometry structure.

DESCRIPTION

The invent_geometry interface calculates a device geometry when supplied with a disk capacity (geom->geom_info.dev_size). The interface supplies the number of sectors, the number of tracks, and the number of cylinders that describes a geometry for the given disk capacity. The disk driver's DEVGETGEOM ioctl command calls the invent_geometry interface when no geometry information is available.

RETURN VALUES

Upon successful completion, invent_geometry returns the value zero (0). Otherwise, it returns the value 1 to indicate a geometry could not be invented.

SEE ALSO

Data Structures: DEVGEOMST(9s)

Index Index for
Section 9
Index Alphabetical
listing for I
Top of page Top of
page