Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

disklabel(4)

disktab(4)

disklabel(8)

getdiskbyname(3)  —  Subroutines

OSF

NAME

getdiskbyname − Gets disk description using a disk name

LIBRARY

Standard C Library (libc.a)

SYNOPSIS

#include <sys/disklabel.h>

 struct disklabel ∗getdiskbyname(
char ∗name) ;

PARAMETERS

nameSpecifies a common name for the disk drive whose geometry and partition characteristics are sought. 

DESCRIPTION

The getdiskbyname() function uses a disk (diskdrive) name to return a pointer to a structure that describes the geometry and standard partition characteristics of the named disk drive. Information obtained from the /etc/disktab database file is written to the type disklabel structure space referenced by the returned pointer. 

RETURN VALUES

Upon successful completion, a pointer to a type disklabel structure is returned. 

RELATED INFORMATION

Files: disklabel(4), disktab(4)

Commands: disklabel(8)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026