Steps to reserve/allocate a range of instance numbers of virtual bus nodes (ext_bus class) (October 2009)
Example:
The listing below (obtained by doing “cat foo | grep ext_bus”) shows a few typical
entries of ext_bus nodes that can be found in a “foo” file that is generated from an
/stand/ext_ioconfig file on a system. In this example, c8xx node has instance number 0,
mpt node has instance number 1 and fcd_vbus nodes have instance numbers from 2 to 6
respectively.
ext_bus:0:1.0.4.0.1:c8xx:258
ext_bus:1:1.0.6.0.0:mpt:258
ext_bus:2:1.0.12.1.0:fcd_vbus:515
ext_bus:3:1.0.12.1.1:fcd_vbus:515
ext_bus:4:1.0.12.1.2:fcd_vbus:515
ext_bus:5:1.0.12.1.3:fcd_vbus:515
ext_bus:6:1.0.12.1.4:fcd_vbus:515
Step 2: For all the existing ext_bus entries, change the instance number to a value greater
than 255. This can be done by editing the “foo” file and changing instance numbers of all the
ext_bus entries to above 255 values.
ext_bus:256:1.0.4.0.1:c8xx:258
ext_bus:257:1.0.6.0.0:mpt:258
ext_bus:258:1.0.12.1.0:fcd_vbus:515
ext_bus:259:1.0.12.1.1:fcd_vbus:515
ext_bus:260:1.0.12.1.2:fcd_vbus:515
ext_bus:261:1.0.12.1.3:fcd_vbus:515
ext_bus:262:1.0.12.1.4:fcd_vbus:515
Step 3: To reserve all the instance numbers between 0-255 range, dummy entries need to be
created for each of the instance number entries between 0-255. Edit the file “foo” by adding
dummy ext_bus nodes with dummy instance numbers in 0-255 range. These dummy entries
must contain non-existent hardware paths. The dummy paths must be added to the file “foo”
in the following format. In the below example, random hardware paths “19.0.0.0.0” to
“19.4.4.4.255” is used for illustration purposes.
ext_bus:256:1.0.4.0.1:c8xx:258
ext_bus:257:1.0.6.0.0:mpt:258
ext_bus:258:1.0.12.1.0:fcd_vbus:515
ext_bus:259:1.0.12.1.1:fcd_vbus:515
ext_bus:260:1.0.12.1.2:fcd_vbus:515
ext_bus:261:1.0.12.1.3:fcd_vbus:515
ext_bus:262:1.0.12.1.4:fcd_vbus:515
ext_bus:0:19.0.0.0.0:fcd_vbus:515
ext_bus:1:19.1.1.1.1:fcd_vbus:515
ext_bus:2:19.2.2.2.2:fcd_vbus:515
..........................................
……………………………………………………..
ext_bus:255:19.4.4.4.255:fcd_vbus:515
The above entries will result in assigning instance numbers above 255 for all the current
ext_bus nodes and all other unused instance number in the 0-255 range will contain dummy
entries thereby reserving them for future use.