Made requesting instance's allocation count for resource available via the service...
[keystone-rtos/rm-lld.git] / rm_services.h
index a00292bf43a20c0efc2e935c96b06c4c90772c06..ec9c21e79c30b13f8858540658623bd4b1086035 100644 (file)
@@ -110,6 +110,12 @@ typedef struct {
      *  than one means the resource is being shared.  This value is only valid
      *  if the serviceState is RM_SERVICE_APPROVED or RM_SERVICE_APPROVED_STATIC. */
     int32_t   resourceNumOwners;
+/** instAllocCount is not valid unless >= 0 */
+#define RM_INST_ALLOC_COUNT_INVALID (-1) 
+    /** Number of times the requesting instance has allocated the returned resource.
+     *  This value is only valid if the serviceState is RM_SERVICE_APPROVED or
+     *  RM_SERVICE_APPROVED_STATIC */
+    int32_t   instAllocCount;
 } Rm_ServiceRespInfo;
 
 /**