| 96 | } |
| 97 | |
| 98 | void |
| 99 | unique_remove(uint64_t value) |
| 100 | { |
| 101 | unique_t un_tofind; |
| 102 | unique_t *un; |
| 103 | |
| 104 | un_tofind.un_value = value; |
| 105 | mutex_enter(&unique_mtx); |
| 106 | un = avl_find(&unique_avl, &un_tofind, NULL); |
| 107 | if (un != NULL) { |
| 108 | avl_remove(&unique_avl, un); |
| 109 | kmem_free(un, sizeof (unique_t)); |
| 110 | } |
| 111 | mutex_exit(&unique_mtx); |
| 112 | } |
no test coverage detected