Searched refs:sess_hash (Results 1 – 1 of 1) sorted by relevance
113 } sess_hash [ 1 << SESS_HASH_SIZE ] ; variable115 #define H_LIST( _hash ) (&(sess_hash[H_MASK(_hash)].sentinel))116 #define H_LOCK( _hash ) (&(sess_hash[H_MASK(_hash)].lock ))261 for (i = 0; i < sizeof(sess_hash) / sizeof(sess_hash[0]); i++) { in fd_sess_init()262 fd_list_init( &sess_hash[i].sentinel, NULL ); in fd_sess_init()263 CHECK_POSIX( pthread_mutex_init(&sess_hash[i].lock, NULL) ); in fd_sess_init()332 for (i = 0; i < sizeof(sess_hash) / sizeof(sess_hash[0]); i++) { in fd_sess_handler_destroy()334 CHECK_POSIX( pthread_mutex_lock(&sess_hash[i].lock) ); in fd_sess_handler_destroy()336 …for (li_si = sess_hash[i].sentinel.next; li_si != &sess_hash[i].sentinel; li_si = li_si->next) { /… in fd_sess_handler_destroy()355 CHECK_POSIX( pthread_mutex_unlock(&sess_hash[i].lock) ); in fd_sess_handler_destroy()