Lines Matching refs:new_session
448 slot_session_t *new_session, *tmp_session;
491 new_session = calloc(1, sizeof (slot_session_t));
492 if (new_session == NULL) {
497 new_session->slotnum = slotnum;
498 new_session->fw_st_id = fw_st_id;
499 new_session->object_list_head = NULL;
500 new_session->session_flags = flags;
501 (void) pthread_rwlock_init(&new_session->object_list_lock, NULL);
504 &new_session->hSession);
508 new_session->session_flags &= ~CKF_SERIAL_SESSION;
510 new_session->session_flags, NULL, NULL,
511 &new_session->hSession);
515 free(new_session);
521 INSERT_INTO_LIST(pool->active_list_head, new_session);
523 *session = new_session;