OpenBSD Handbook Manuals
Search

getrawpartition(3)

Canonical URL: /getrawpartition.3/

GETRAWPARTITION(3) Library Functions Manual GETRAWPARTITION(3)

getrawpartitionget the system raw partition

/* -lutil */
#include <util.h>

int
getrawpartition(void);

() returns the partition number (‘a’ == 0, ‘b’ == 1, ...) of the “raw” partition of the system's disks. The “raw” partition is defined as the partition which provides access to the entire disk, regardless of the disk's partition map.

sysctl(2), getmaxpartitions(3)

The getrawpartition function call appeared in NetBSD 1.2.

OpenBSD 7.9 June 6, 2025 GETRAWPARTITION(3)

Need conceptual guidance? Continue in the OpenBSD Handbook.