xref: /csrg-svn/lib/libc/gen/getdiskbyname.3 (revision 61111)
1*61111Sbostic.\" Copyright (c) 1983, 1991, 1993
2*61111Sbostic.\"	The Regents of the University of California.  All rights reserved.
320514Smckusick.\"
443571Strent.\" %sccs.include.redist.man%
520514Smckusick.\"
6*61111Sbostic.\"     @(#)getdiskbyname.3	8.1 (Berkeley) 06/04/93
735759Sbostic.\"
848352Scael.Dd
948352Scael.Dt GETDISKBYNAME 3
1048352Scael.Os BSD 4.2
1148352Scael.Sh NAME
1248352Scael.Nm getdiskbyname
1348352Scael.Nd get generic disk description by its name
1448352Scael.Sh SYNOPSIS
1548352Scael.Fd #include <sys/disklabel.h>
1648352Scael.Ft struct disklabel *
1748352Scael.Fn getdiskbyname "const char *name"
1848352Scael.Sh DESCRIPTION
1948352ScaelThe
2048352Scael.Fn getdiskbyname
2148352Scaelfunction
2248352Scaeltakes a disk name (e.g.
2348352Scael.Ql rm03 )
2448352Scaeland returns a prototype disk label
2520514Smckusickdescribing its geometry information and the standard
2631570Skarelsdisk partition tables.  All information is obtained from
2720514Smckusickthe
2848352Scael.Xr disktab 5
2920514Smckusickfile.
3048352Scael.Sh SEE ALSO
3148352Scael.Xr disklabel 5 ,
3248352Scael.Xr disktab 5 ,
3348352Scael.Xr disklabel 8
3448352Scael.Sh HISTORY
3548352ScaelThe
3648352Scael.Fn getdiskbyname
3748352Scaelfunction appeared in
3848352Scael.Bx 4.3 .
39