1GETDISKBYNAME(3)           Library Functions Manual           GETDISKBYNAME(3)
2
3
4

NAME

6       getdiskbyname - get disk description by its name
7

SYNOPSIS

9       #include <sys/types.h>
10       #include <sys/disktab.h>
11
12       struct disklabel *
13       getdiskbyname(name)
14       char *name;
15

DESCRIPTION

17       Getdiskbyname  takes  a  disk  name (e.g. rm03) and returns a structure
18       describing its geometry information and  the  standard  disk  partition
19       tables.   Information obtained from the disktab(5) file has the follow‐
20       ing form:
21
22

SEE ALSO

24       disktab(5), disklabel(8)
25

BUGS

27       This routine is primarily used when the underlying disk driver does not
28       support  labels.  The other use is for supplying default information to
29       the disklabel(8) program.
30
31
32
334.2 Berkeley Distribution      September 8, 1995              GETDISKBYNAME(3)
Impressum