bsd man page for getdisk

Query: getdisk

OS: bsd

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

GETDISKBYNAME(3)					     Library Functions Manual						  GETDISKBYNAME(3)

NAME
getdiskbyname - get disk description by its name
SYNOPSIS
#include <sys/types.h> #include <sys/disktab.h> struct disklabel * getdiskbyname(name) char *name;
DESCRIPTION
Getdiskbyname takes a disk name (e.g. rm03) and returns a structure describing its geometry information and the standard disk partition tables. Information obtained from the disktab(5) file has the following form:
SEE ALSO
disktab(5), disklabel(8)
BUGS
This routine is primarily used when the underlying disk driver does not support labels. The other use is for supplying default information to the disklabel(8) program. 4.2 Berkeley Distribution September 8, 1995 GETDISKBYNAME(3)
Related Man Pages
disktab(5) - bsd
creatediskbyname(3x) - ultrix
createlabel(3) - osf1
disklabel(4) - osf1
disktab(4) - osf1
Similar Topics in the Unix Linux Community
pstat_getdisk() call doesn’t work properly in HPUX 11.31 (11i V3)
how can i run this command (getDisk -f -a)
How to use getdiskbyname() API