-int
-entry_rdwr_lock(Entry *e, int rw)
-{
- Debug( LDAP_DEBUG_ARGS, "entry_rdwr_%slock: ID: %ld\n",
- rw ? "w" : "r", e->e_id, 0);
- if (rw)
- return pthread_rdwr_wlock_np(&e->e_rdwr);
- else
- return pthread_rdwr_rlock_np(&e->e_rdwr);
-}
-
-int
-entry_rdwr_rlock(Entry *e)
-{
- return entry_rdwr_lock( e, 0 );
-}
-
-int
-entry_rdwr_wlock(Entry *e)
-{
- return entry_rdwr_lock( e, 1 );
-}
-
-int
-entry_rdwr_unlock(Entry *e, int rw)
-{
- Debug( LDAP_DEBUG_ARGS, "entry_rdwr_%sunlock: ID: %ld\n",
- rw ? "w" : "r", e->e_id, 0);
- if (rw)
- return pthread_rdwr_wunlock_np(&e->e_rdwr);
- else
- return pthread_rdwr_runlock_np(&e->e_rdwr);
-}
+/*
+ * These routines are used only by Backend.
+ *
+ * the Entry has three entry points (ways to find things):
+ *
+ * by entry e.g., if you already have an entry from the cache
+ * and want to delete it. (really by entry ptr)
+ * by dn e.g., when looking for the base object of a search
+ * by id e.g., for search candidates
+ *
+ * these correspond to three different avl trees that are maintained.
+ */