Lines Matching defs:session
74 typedef struct session {
76 pthread_mutex_t session_mutex; /* session's mutex lock */
77 pthread_mutex_t ses_free_mutex; /* mutex used during closing session */
79 uint32_t ses_refcnt; /* session reference count */
80 uint32_t ses_close_sync; /* session closing flags */
81 boolean_t ses_RO; /* RO or RW session flag */
89 /* Pointers to form the global session list */
90 struct session *next; /* points to next session on the list */
91 struct session *prev; /* points to prev session on the list */
111 * time the first session in the list will be freed.
116 kms_session_t *first; /* points to the first session in the list */
117 kms_session_t *last; /* points to the last session in the list */
130 #define SESSION_REFCNT_WAITING 2 /* Waiting for session reference */
133 * This macro is used to decrement the session reference count by one.
136 * whether the caller holds the lock on the session or not.
139 * 1) Get the session lock if the caller does not hold it.
140 * 2) Decrement the session reference count by one.
141 * 3) If the session reference count becomes zero after being decremented,
142 * and there is a closing session thread in the wait state, then
144 * in the session deletion routine due to non-zero reference ount.
145 * 4) Always release the session lock.