Lines Matching defs:session
59 * mechanism, if the session slot has a CRYPTO_LIMITED_HASH_SUPPORT flag set.
72 typedef struct session {
74 pthread_mutex_t session_mutex; /* session's mutex lock */
75 pthread_mutex_t ses_free_mutex; /* mutex used during closing session */
77 uint32_t ses_refcnt; /* session reference count */
78 uint32_t ses_close_sync; /* session closing flags */
79 crypto_session_id_t k_session; /* kernel session ID */
80 boolean_t ses_RO; /* RO or RW session flag */
88 /* Pointers to form the global session list */
89 struct session *next; /* points to next session on the list */
90 struct session *prev; /* points to prev session on the list */
108 * time the first session in the list will be freed.
113 kernel_session_t *first; /* points to the first session in the list */
114 kernel_session_t *last; /* points to the last session in the list */
125 #define SESSION_REFCNT_WAITING 2 /* Waiting for session reference */
128 * This macro is used to decrement the session reference count by one.
131 * whether the caller holds the lock on the session or not.
134 * 1) Get the session lock if the caller does not hold it.
135 * 2) Decrement the session reference count by one.
136 * 3) If the session reference count becomes zero after being decremented,
137 * and there is a closing session thread in the wait state, then
139 * in the session deletion routine due to non-zero reference ount.
140 * 4) Always release the session lock.