hwi_find_num_units()

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 item 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

See also:

hwi_find(), hwi_find_bus(), hwi_find_device(), hwi_find_devicebus(), hwi_find_unit(), hwi_tag_find(), hwiattr_get(), hwiattr_get_*(), hwitag_find_busattr(), hwitag_find_clkfreq(), hwitag_find_errata(), hwitag_find_ivec(), hwitag_find_nicaddr(), hwitag_find_phyaddr()