Solaris Bandwidth Manager 1.6 Developer Guide

Returns

The function ba_get_num_classes() returns the number of classes on success, and -1 on error.