'\"macro stdmacro
.if n .pH ddi_dki.size @(#)size	40.5 of 10/10/89
.\" Copyright 1989 AT&T
.de IX
.ie '\\n(.z'' .tm .Index: \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9	\\n%
.el \\!.IX \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
..
.nr X
.if \nX=0 .ds x} size D2D "3B2" "DDI" "\&"
.if \nX=1 .ds x} size D2D "3B2" "DDI"
.if \nX=2 .ds x} size D2D "" "\&"
.if \nX=3 .ds x} size "" "" "\&"
.TH \*(x}
.IX "\f4size\fP(D2D)"
.SH NAME
\f4size\f1 \- return size of logical device
.SH SYNOPSIS
.nf
.na
\f4
#include <sys/types.h>
.sp 0.5
\f2prefix\f4size(\f4dev_t\f1 \f2dev\f4);\f1
.ad
.fi
.SH ARGUMENT
.RS 0n
.IP "\f2dev\f1" 10n
The logical device number.
.RE
.SH DESCRIPTION
Returns the number of 512-byte units on a logical device (partition). 
Although this routine is not required, it is recommended that new
drivers include one as the Release 4.0 kernel calls the
\f4size\f1 routine on behalf of certain UNIX commands such as
\f4stat\f1(3G).
.SH RETURN VALUE
The number of 512 byte units on the logical device specified by
\f2dev\f1, or \f4-1\f1 on failure.
