Lines Matching defs:session
54 /* Holds the saved session state */
73 typedef struct session {
75 pthread_mutex_t session_mutex; /* session's mutex lock */
77 uint32_t ses_refcnt; /* session reference count */
78 uint32_t ses_close_sync; /* session closing flags */
79 CK_STATE state; /* session state */
86 /* Pointers to form the global session list */
87 struct session *next; /* points to next session on the list */
88 struct session *prev; /* points to prev session on the list */
148 /* Increment session ref count. */ \
203 * time the first session in the list will be freed.
208 struct session *first; /* points to the first session in the list */
209 struct session *last; /* points to the last session in the list */
218 #define SESSION_REFCNT_WAITING 2 /* Waiting for session reference */
222 * This macro is used to decrement the session reference count by one.
225 * whether the caller holds the lock on the session or not.
228 * 1) Get the session lock if the caller does not hold it.
229 * 2) Decrement the session reference count by one.
230 * 3) If the session reference count becomes zero after being decremented,
231 * and there is a closing session thread in the wait state, then
233 * in the session deletion routine due to non-zero reference ount.
234 * 4) Always release the session lock.