lgrp_nlgrps

Synopsis

Description

The lgrp_nlgrps() function takes a cookie representing a snapshot of the lgroup
hierarchy obtained from lgrp_init(3LGRP). It returns the number of lgroups in the hierarchy
where the number is always at least one.

Return Values

Upon successful completion, lgrp_nlgrps() returns the number of lgroups in the system. Otherwise,
it returns -1 and sets errno to indicate the error.