]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes in shared code that don't affect open-vm-tools functionality.
authorVMware, Inc <>
Mon, 20 Sep 2010 18:15:00 +0000 (11:15 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 20 Sep 2010 18:15:00 +0000 (11:15 -0700)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/include/mutexRankLib.h

index 8919759d5aa5251d35c5d6f979008f543c399593..072f33fcb50c976439dcb44962159cc1a8c7974b 100644 (file)
 #define RANK_vmdbMemMapLock          (RANK_libLockBase + 0x5580)
 
 /*
- * poll default lock
+ * misc locks
  *
- * There is a LOT of code under this lock, but it appears reasonably
- * low-level, so this seems as good a rank as any.
+ * Assuming ordering is important here for the listed locks. Other
+ * non-leaf locks are usually defined with RANK_LEAF - 1.
+ *
+ * At least:
+ *    keyLocator > preference (for checking AESNI)
+ *    configDb > keyLocator (for unlocking dictionaries)
+ *    battery/button > preference
+ *    workerLib > something for sure under VThread_Create
+ *    licenseCheck > preference
  */
-#define RANK_pollDefaultLock         (RANK_libLockBase + 0x8505)
 
-/*
- * Low-level misc. range:
- * (RANK_libLockBase + 0x9000, RANK_libLockBase + 0x9100)
- */
-#define RANK_licenseCheckLock        (RANK_libLockBase + 0x9003)
-#define RANK_sslStateLock            (RANK_libLockBase + 0x9004)
-#define RANK_sslConnectionLock       (RANK_libLockBase + 0x9005)
-#define RANK_getSafeTmpDirLock       (RANK_libLockBase + 0x9010)
-#define RANK_keyLocatorLock          (RANK_libLockBase + 0x9020)
-#define RANK_randGetBytesLock        (RANK_libLockBase + 0x9030)
-#define RANK_randSeedLock            (RANK_libLockBase + 0x9040)
+#define RANK_sslStateLock            (RANK_libLockBase + 0x7010)
+#define RANK_getSafeTmpDirLock       (RANK_libLockBase + 0x7020)
+#define RANK_batteryLock             (RANK_libLockBase + 0x7030)
+#define RANK_buttonLock              (RANK_libLockBase + 0x7040)
+#define RANK_pollDefaultLock         (RANK_libLockBase + 0x7050)
+#define RANK_workerLibLock           (RANK_libLockBase + 0x7060)
+#define RANK_configDbLock            (RANK_libLockBase + 0x7070)
+#define RANK_keyLocatorLock          (RANK_libLockBase + 0x7080)
+#define RANK_licenseCheckLock        (RANK_libLockBase + 0x7090)
+#define RANK_preferenceLock          (RANK_libLockBase + 0x7100)
 
 #endif /* _LIBMUTEXRANK_H */