Lines Matching defs:bucket

110  * from being freed. A provider is looked up by taking the bucket lock for the
124 * bucket lock before provider lock
277 fasttrap_bucket_t *bucket;
299 bucket = &fasttrap_provs.fth_table[i];
300 mutex_enter(&bucket->ftb_mtx);
301 fpp = (fasttrap_provider_t **)&bucket->ftb_data;
355 mutex_exit(&bucket->ftb_mtx);
442 fasttrap_bucket_t *bucket = &fasttrap_tpoints.fth_table[i];
444 mutex_enter(&bucket->ftb_mtx);
445 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) {
461 mutex_exit(&bucket->ftb_mtx);
504 fasttrap_bucket_t *bucket;
525 bucket = &fasttrap_tpoints.fth_table[FASTTRAP_TPOINTS_INDEX(pid, pc)];
537 mutex_enter(&bucket->ftb_mtx);
538 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) {
587 mutex_exit(&bucket->ftb_mtx);
604 new_tp->ftt_next = bucket->ftb_data;
606 bucket->ftb_data = new_tp;
608 mutex_exit(&bucket->ftb_mtx);
629 mutex_exit(&bucket->ftb_mtx);
676 fasttrap_bucket_t *bucket;
695 bucket = &fasttrap_tpoints.fth_table[FASTTRAP_TPOINTS_INDEX(pid, pc)];
696 mutex_enter(&bucket->ftb_mtx);
697 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) {
774 mutex_exit(&bucket->ftb_mtx);
784 mutex_exit(&bucket->ftb_mtx);
820 mutex_enter(&bucket->ftb_mtx);
821 pp = (fasttrap_tracepoint_t **)&bucket->ftb_data;
831 mutex_exit(&bucket->ftb_mtx);
1184 fasttrap_bucket_t *bucket;
1187 bucket = &fasttrap_procs.fth_table[FASTTRAP_PROCS_INDEX(pid)];
1188 mutex_enter(&bucket->ftb_mtx);
1190 for (fprc = bucket->ftb_data; fprc != NULL; fprc = fprc->ftpc_next) {
1193 mutex_exit(&bucket->ftb_mtx);
1204 * Drop the bucket lock so we don't try to perform a sleeping
1207 mutex_exit(&bucket->ftb_mtx);
1214 mutex_enter(&bucket->ftb_mtx);
1218 * been created for this pid while we weren't under the bucket lock.
1220 for (fprc = bucket->ftb_data; fprc != NULL; fprc = fprc->ftpc_next) {
1223 mutex_exit(&bucket->ftb_mtx);
1235 new_fprc->ftpc_next = bucket->ftb_data;
1236 bucket->ftb_data = new_fprc;
1238 mutex_exit(&bucket->ftb_mtx);
1246 fasttrap_bucket_t *bucket;
1268 bucket = &fasttrap_procs.fth_table[FASTTRAP_PROCS_INDEX(pid)];
1269 mutex_enter(&bucket->ftb_mtx);
1271 fprcp = (fasttrap_proc_t **)&bucket->ftb_data;
1286 mutex_exit(&bucket->ftb_mtx);
1302 fasttrap_bucket_t *bucket;
1310 bucket = &fasttrap_provs.fth_table[FASTTRAP_PROVS_INDEX(pid, name)];
1311 mutex_enter(&bucket->ftb_mtx);
1316 for (fp = bucket->ftb_data; fp != NULL; fp = fp->ftp_next) {
1320 mutex_exit(&bucket->ftb_mtx);
1326 * Drop the bucket lock so we don't try to perform a sleeping
1329 mutex_exit(&bucket->ftb_mtx);
1370 mutex_enter(&bucket->ftb_mtx);
1374 * been created for this pid while we weren't under the bucket lock.
1376 for (fp = bucket->ftb_data; fp != NULL; fp = fp->ftp_next) {
1380 mutex_exit(&bucket->ftb_mtx);
1402 mutex_exit(&bucket->ftb_mtx);
1408 new_fp->ftp_next = bucket->ftb_data;
1409 bucket->ftb_data = new_fp;
1412 mutex_exit(&bucket->ftb_mtx);
1449 * modifications to it because we have locked the bucket that
1470 fasttrap_bucket_t *bucket;
1475 bucket = &fasttrap_provs.fth_table[FASTTRAP_PROVS_INDEX(pid, name)];
1476 mutex_enter(&bucket->ftb_mtx);
1478 for (fp = bucket->ftb_data; fp != NULL; fp = fp->ftp_next) {
1485 mutex_exit(&bucket->ftb_mtx);
1493 mutex_exit(&bucket->ftb_mtx);
1505 * We obviously need to take the bucket lock before the provider lock
1509 * bucket lock therefore protects the integrity of the provider hash
1527 mutex_exit(&bucket->ftb_mtx);
2259 fasttrap_bucket_t *bucket = &fasttrap_provs.fth_table[i];
2261 mutex_enter(&bucket->ftb_mtx);
2262 fpp = (fasttrap_provider_t **)&bucket->ftb_data;
2268 * bucket lock so there's no chance of another thread
2283 mutex_exit(&bucket->ftb_mtx);