Lines Matching refs:slotinfo
30 static kms_slot_t *slotinfo = NULL;
33 * Initialize the slotinfo record.
45 slotinfo = calloc(KMS_SLOTS, sizeof (kms_slot_t));
46 if (slotinfo == NULL)
49 slotinfo->sl_sess_list = NULL;
50 slotinfo->sl_tobj_list = NULL;
51 slotinfo->sl_state = CKU_PUBLIC;
54 if (pthread_mutex_init(&slotinfo->sl_mutex, NULL) != 0) {
55 (void) free(slotinfo);
56 slotinfo = NULL;
66 if (slotinfo != NULL) {
67 (void) pthread_mutex_destroy(&slotinfo->sl_mutex);
68 (void) free(slotinfo);
69 slotinfo = NULL;
76 return (slotinfo);