hwi_find_num_units()

QNX SDP8.0C Library ReferenceAPIDeveloper

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 OS

Safety:
Cancellation pointNo
Signal handlerNo
ThreadYes
Page updated: