Lines Matching refs:dtor
442 smb_dtor_t *dtor;
446 dtor = kmem_cache_alloc(smb_dtor_cache, KM_SLEEP);
447 bzero(dtor, sizeof (smb_dtor_t));
448 dtor->dt_magic = SMB_DTOR_MAGIC;
449 dtor->dt_object = object;
450 dtor->dt_proc = dtorproc;
453 list_insert_tail(&ll->ll_deleteq, dtor);
476 smb_dtor_t *dtor;
485 dtor = list_head(&ll->ll_deleteq);
486 while (dtor != NULL) {
487 SMB_DTOR_VALID(dtor);
488 ASSERT((dtor->dt_object != NULL) && (dtor->dt_proc != NULL));
489 list_remove(&ll->ll_deleteq, dtor);
493 dtor->dt_proc(dtor->dt_object);
495 dtor->dt_magic = (uint32_t)~SMB_DTOR_MAGIC;
496 kmem_cache_free(smb_dtor_cache, dtor);
498 dtor = list_head(&ll->ll_deleteq);