Lines Matching defs:session
60 * mechanism, if the session slot has a CRYPTO_LIMITED_HASH_SUPPORT flag set.
73 typedef struct session {
75 pthread_mutex_t session_mutex; /* session's mutex lock */
76 pthread_mutex_t ses_free_mutex; /* mutex used during closing session */
78 uint32_t ses_refcnt; /* session reference count */
79 uint32_t ses_close_sync; /* session closing flags */
80 crypto_session_id_t k_session; /* kernel session ID */
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 */
109 * time the first session in the list will be freed.
114 kernel_session_t *first; /* points to the first session in the list */
115 kernel_session_t *last; /* points to the last session in the list */
126 #define SESSION_REFCNT_WAITING 2 /* Waiting for session reference */
129 * This macro is used to decrement the session reference count by one.
132 * whether the caller holds the lock on the session or not.
135 * 1) Get the session lock if the caller does not hold it.
136 * 2) Decrement the session reference count by one.
137 * 3) If the session reference count becomes zero after being decremented,
138 * and there is a closing session thread in the wait state, then
140 * in the session deletion routine due to non-zero reference ount.
141 * 4) Always release the session lock.