OpenBSD manual page server

Manual Page Search Parameters

GETMAXPARTITIONS(3) Library Functions Manual GETMAXPARTITIONS(3)

getmaxpartitionsget the maximum number of partitions allowed per disk

#include <util.h>

int
getmaxpartitions(void);

() returns the number of partitions that are allowed per disk on the system.

getrawpartition(3), sysctl(2)

The getmaxpartitions function call appeared in NetBSD 1.2.

January 12, 2018 OpenBSD-6.4