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