Updates FRU Bucket.
#include <diag/tm_input.h> #include <diag/da.h> long insert_frub ( tminput, frub ) struct tm_input *tminput; struct fru_bucket *frub;
The insert_frub subroutine gets a device's FRU name and source number from the Customized Device object class and places them into a structure of type fru_bucket. The calling routine specifies through the fru_flag member of the FRU Bucket structure whether the FRU name is for device x or the FRU parent of x.
Parameter | Description |
---|---|
tminput | Identifies the device x (specifically, tminput.dname). |
frub | Pointer to the FRU Bucket structure to be updated. |
This function should be called before addfrub.
Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned.