"David McKinley" <[EMAIL PROTECTED]> wrote on 12/04/2007 06:32:35 PM:
> My initial recommendation is to keep the structure as it is, to
> maintain compatibility with the B.02 spec. But, we need to adopt a
> convention in order to identify which entries in these arrays are
> valid, and which are invalid. With such a convention, then we can
> say that the first invalid entry in each of these arrays terminates
> the valid data.
I agree.
>
> In the case of the EntitiesImpacted array, it may be tricky. There
> is an entity type of SAHPI_ENT_UNSPECIFIED, which is distinct from
> SAHPI_ENT_UNKNOWN. Therefore, I'd suggest that an entity path that
> has SAHPI_ENT_UNSPECIFIED (which has the value of 0, by the way) as
> the first entity type in an entity path could serve as a terminator
> for the EntitiesImpacted array. But, I think we'd need to be sure
> that nobody is using this as a valid entity type.
What about using SAHPI_ENT_ROOT as the delimiter? That means though that
initializing the affected entities array to 0 wouldn't be enough. However,
I'm sure nobody is using the entity path {ROOT,0} alone.
>
> In the case of the TestParameters array, there is a 'ParamName'
> field, which is a null-terminated string. So, an entry with a null
> string (first character of string is null byte) for the ParamName
> could be used as a delimiter for the array.
This works for me. Unless someone can think of a valid case in which
ParamName would be empty.
--Renier
>
> In either case, the 'delimiter' entry would follow the last valid
> entry in the array if there are less than
> SAHPI_DIMITEST_MAX_ENTITIESIMPACTED, or
> SAHPI_DIMITEST_MAX_PARAMETERS, entries used, respectively.
>
> Any different thoughts?
>
>
> David
> From: Renier Morales [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 04, 2007 2:23 PM
> To: [EMAIL PROTECTED]
> Cc: [email protected]
> Subject: [twg-hardwareplatform] Question on SaHpiDimiTestT
>
> Hello,
>
> Have a questoin about the SaHpiDimiTestT structure.
> How can one determine the number of impacted entities and number of
> test parameters in the structure? For exampe, when receiving the
> DimiTest from saHpiDimiTestInfoGet().
>
> Thanks.
>
> Saludos,
>
> --Renier-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel