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 */
123 * time the first session in the list will be freed.
128 struct session *first; /* points to the first session in the list */
129 struct session *last; /* points to the last session in the list */
138 #define SESSION_REFCNT_WAITING 2 /* Waiting for session reference */
142 * This macro is used to decrement the session reference count by one.
145 * whether the caller holds the lock on the session or not.
148 * 1) Get the session lock if the caller does not hold it.
149 * 2) Decrement the session reference count by one.
150 * 3) If the session reference count becomes zero after being decremented,
151 * and there is a closing session thread in the wait state, then
153 * in the session deletion routine due to non-zero reference ount.
154 * 4) Always release the session lock.