addfrub_src
Purpose
Concludes a collection of field replacement units (FRUs) with a platform specific System Reference Code (SRC).
Syntax
#include <diag/da.h>
int addfrub_src (fptr)
struct fru_bucket_src *fptr;
Description
The addfrub_src subroutine associates
a collection of FRUs with a failure detected by the device currently
being tested. The TMInput object class identifies the device currently
being tested.
Note: addfrub() should be
used when reporting a Service Request Number (SRN). insert_frub() should
be called before addfrub() to fill in some
of the fru_bucket data. addfrub_src() should
be used when reporting an System Reference Code (SRC). Then, entire
contents of the fru_bucket_src should be
filled in by the caller before calling addfrub_src(),
thus there is no corresponding call to insert_frub for fru_bucket_src.
Parameters
| Parameter | Description |
|---|---|
| fptr | Pointer to a structure of type fru_bucket_src,
which is defined below. The entire structure must be filled out before
calling addfrub_src. Any optional or unknown
values should be set to NULL (0). |
| dname | Names the device under test. |
| src | System Reference Code. The Primary Reference Code is the 1st 8 characters of this 32 character string. The Primary Reference Code is required, the remainder of the string is optional. |
| refc2 | Extended reference code word 2 (required). |
| refc3 - refc9 | Optional additional extended reference code words 3 - 9. Should be 0 if not present. |
| rmsg | Message number of the text describing the failure. The set number of the text is predefined by the PSet field in the predefined Diagnostic Resources object class. |
| crid | ASCII character representing the subsystem creating the error log reporting the failure. Use NULL (0) if this failure is not from platform error log analysis. |
| plid | Unique identifier for this failure. |
| subsysid | Platform Error Log Subsystem ID, otherwise 0. |
| event_sev | Platform Error Log Severity, otherwise 0. |
| action_flags | Flags defining reporting action for this failure.
The values can be or' ed together.
|
| errlg_seq | Error log sequence number of originating error. |
| frus | Optional linked list of FRUs as described in
the following structure. This list is not necessary if the SRC completely
describes the failure and resolution actions. |
| type | FRU type. One of the following:
|
| priority | FRU Replacement/Procedure Priority. One of the
following:
|
| loc | Location code |
| pn | FRU Stocking Part Number if available, mutually exclusive with proc_id. |
| proc_id | Procedure Id if available, mutually exclusive with pn. |
| ccin | CCIN, if available and only if pn is available. |
| sn | FRU Serial Number, if available, and only if pn is available. |
| next_fru | Pointer to the next frus_src structure. |
Return Value
| Item | Description |
|---|---|
| 0 | Upon successful completion. |
| -1 | If the addfrub_src subroutine is unsuccessful. |