Count the instances of a unit in the system page
#include <drvr/hwinfo.h> int hwi_find_num_units( const char *name );
libdrvr
Use the -l drvr option to qcc to link against this library.
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.
The number of instances, or -1 if an error occurred.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
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()