GETMAXPARTITIONS(3) Library Functions Manual GETMAXPARTITIONS(3)

getmaxpartitionsget the maximum number of partitions allowed per disk

System Utilities Library (libutil, -lutil)
#include <util.h>

int
getmaxpartitions(void);

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

sysctl(2), getrawpartition(3)

The getmaxpartitions function call appeared in NetBSD 1.2.

June 6, 2025 Debian