Commit | Line | Data |
---|---|---|
99c9d8e2 KB |
1 | .\" Copyright (c) 1983 The Regents of the University of California. |
2 | .\" All rights reserved. | |
62068be8 | 3 | .\" |
91cff1e1 | 4 | .\" %sccs.include.redist.man% |
99c9d8e2 | 5 | .\" |
91cff1e1 | 6 | .\" @(#)getdiskbyname.3 6.5 (Berkeley) %G% |
62068be8 | 7 | .\" |
0609943c | 8 | .TH GETDISKBYNAME 3 "" |
62068be8 KM |
9 | .UC 5 |
10 | .SH NAME | |
39e10979 | 11 | getdiskbyname \- get generic disk description by its name |
62068be8 KM |
12 | .SH SYNOPSIS |
13 | .nf | |
39e10979 | 14 | .B #include <sys/disklabel.h> |
62068be8 | 15 | .PP |
39e10979 | 16 | .B struct disklabel * |
62068be8 KM |
17 | .B getdiskbyname(name) |
18 | .B char *name; | |
19 | .fi | |
20 | .SH DESCRIPTION | |
21 | .I Getdiskbyname | |
39e10979 | 22 | takes a disk name (e.g. rm03) and returns a prototype disk label |
62068be8 | 23 | describing its geometry information and the standard |
39e10979 | 24 | disk partition tables. All information is obtained from |
62068be8 KM |
25 | the |
26 | .IR disktab (5) | |
27 | file. | |
62068be8 | 28 | .SH "SEE ALSO" |
39e10979 | 29 | disklabel(5), disktab(5), disklabel(8) |