Find a bus attribute tag associated with a bus
#include <drvr/hwinfo.h> int hwitag_find_busattr( unsigned hwi_off, unsigned *busattr_idx, struct hwi_busattr *busattr );
libdrvr
Use the -l drvr option to qcc to link against this library.
You can use hwitag_find_busattr() to find one or more bus attribute tags associated with the bus at hwi_off in the hwinfo section of the system page.
If the specified bus attribute tag exists and busattr isn't NULL, the retrieved bus attributes are placed in *busattr.
Some buses contain multiple sets of attributes. You can retrieve all of them by using the busattr_idx parameter as follows:
0 on success (independent of whether busattr is NULL), or -1 on error.
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_num_units(), hwi_find_unit(), hwi_tag_find(), hwiattr_get(), hwiattr_get_*(), hwitag_find_clkfreq(), hwitag_find_errata(), hwitag_find_ivec(), hwitag_find_nicaddr(), hwitag_find_phyaddr()