Count the instances of a unit in the system page
#include <drvr/hwinfo.h> int hwi_find_num_units( const char *name );
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 |