hwi_find_num_units()

Updated: May 06, 2022

Count the instances of a unit in the system page

Synopsis:

#include <drvr/hwinfo.h>

int hwi_find_num_units( const char *name );

Arguments:

name
The name of the unit you want to count.

Library:

libdrvr

Use the -l drvr option to qcc to link against this library.

Description:

Multiple instances of a device or bus may exist in the hwinfo section of the system page. The hwi_find_num_units() function determines how instances of item name there are.

Returns:

The number of instances, or -1 if an error occurred.

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes