GETDISKBYNAME(3)
πΈ NAME πΈ
bestie, welcome to the getdiskbyname(3) page β it's from the Library Functions Manual, and it's literally about this:
getdiskbyname β get generic disk description by its name π«Ά
π LIBRARY π
Standard C Library (libc, -lc) β¨
π SYNOPSIS π
okay so here's the summoning spell, copy it exactly:
#include <sys/disklabel.h>
struct disklabel *
getdiskbyname(const char *name);
π¦ DESCRIPTION π¦
so getdiskbyname() takes a disk name β like rm03 β and returns a prototype disk label describing its geometry information and the standard disk partition tables π
β¨. that's the whole vibe.
all of that info is obtained from the disktab(5) file, no cap ππ
π SEE ALSO π
go read these too, bestie:
π HISTORY π
getdiskbyname() appeared in 4.3BSD β iconic origin story, honestly.
and that's the tea π: this page is from Debian, dated June 4, 1993 β mwah π
π¦ where this page comes from
- freebsd 15.1: base 15.1
- Copyright (c) 1983, 1991, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms