When dealing with striped platform resources the mapViewOfPlatformResource() UG documentation of resource length versus size is not clear. Note: the SRD is clear. Also it would be helpful if getPlatformResourceAttributes() (or some other API) provided the mappable size of a striped resource. If not, then at a minimum the equation for the mappable size of the striped resource should be provided.
Committed SVNRevision 90685. Adding new attribute to platformResourceAttributes_t, userMappableSizeInBytes. Update getPlatformResourceAttributes() accordingly.
(In reply to Andre Martinez from comment #1) > Committed SVNRevision 90685. > > Adding new attribute to platformResourceAttributes_t, > userMappableSizeInBytes. Update getPlatformResourceAttributes() accordingly. Detection of 'isStriped' might be more accurately stated as not equal to zero rather than greater than zero.
Committed SVNRevision 90688. Incorporate feedback from comment #2.
(In reply to Andre Martinez from comment #1) > Committed SVNRevision 90685. The following is not correct: userMappableSizeInBytes = (r->accessRights == proxyAccess) ? 0 : r->lengthInBytes; accessRights is of type resourcePermissionBits, not accessStyle (the enum type that defines proxyAccess). The registry does not specify if a resource must be accessed as proxy or not, this determined at resource construction time (see PR_ConceptualObjectConstructor()). We don't want to duplicate the proxy determination code in PR_ConceptualObjectConstructor() nor do I see a good way to refactor the code so it could be shared. Perhaps another solution is to rename userMappableSizeInBytes to usableSizeInBytes (or perhaps even just sizeInBytes because once this PCR is finished the UG should clearly document the difference between a resource's "length" and its "size"). If we do this then need for the proxy check goes away.
Committed SVNRevision 90692. Changing userMappableSizeInBytes to just sizeInBytes.
Committed SVNRevision 90694. Add comments to previous commit.
Committed SVNRevision 90705. Clarify difference between resource length and size. Adding clarification to the Platform Resource Services section instead.
CCB visited this PCR on 2024-01-23-80895
Developer asserts updates are acceptable for release 11.1.0.
CCB visited this PCR on 2024-04-04-71881
CCB visited this PCR on 2024-08-30-49739
Developer asserts updates are acceptable for release 11.4.0.
CCB visited this PCR on 2024-12-11-68907