Lines Matching defs:bucket
113 * from being freed. A provider is looked up by taking the bucket lock for the
127 * bucket lock before provider lock
197 * which means it would fall into the kalloc.128 bucket. With
328 fasttrap_bucket_t *bucket;
350 bucket = &fasttrap_provs.fth_table[i];
351 lck_mtx_lock(&bucket->ftb_mtx);
352 fpp = (fasttrap_provider_t **)&bucket->ftb_data;
402 lck_mtx_unlock(&bucket->ftb_mtx);
494 fasttrap_bucket_t *bucket = &fasttrap_tpoints.fth_table[i];
496 lck_mtx_lock(&bucket->ftb_mtx);
497 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) {
503 lck_mtx_unlock(&bucket->ftb_mtx);
531 * to avoid a deadlock when it takes the bucket lock.
581 fasttrap_bucket_t *bucket;
602 bucket = &fasttrap_tpoints.fth_table[FASTTRAP_TPOINTS_INDEX(pid, pc)];
614 lck_mtx_lock(&bucket->ftb_mtx);
615 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) {
658 lck_mtx_unlock(&bucket->ftb_mtx);
675 new_tp->ftt_next = bucket->ftb_data;
677 bucket->ftb_data = new_tp;
679 lck_mtx_unlock(&bucket->ftb_mtx);
700 lck_mtx_unlock(&bucket->ftb_mtx);
747 fasttrap_bucket_t *bucket;
766 bucket = &fasttrap_tpoints.fth_table[FASTTRAP_TPOINTS_INDEX(pid, pc)];
767 lck_mtx_lock(&bucket->ftb_mtx);
768 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) {
846 lck_mtx_unlock(&bucket->ftb_mtx);
856 lck_mtx_unlock(&bucket->ftb_mtx);
892 lck_mtx_lock(&bucket->ftb_mtx);
893 pp = (fasttrap_tracepoint_t **)&bucket->ftb_data;
903 lck_mtx_unlock(&bucket->ftb_mtx);
1292 fasttrap_bucket_t *bucket;
1295 bucket = &fasttrap_procs.fth_table[FASTTRAP_PROCS_INDEX(pid)];
1296 lck_mtx_lock(&bucket->ftb_mtx);
1298 for (fprc = bucket->ftb_data; fprc != NULL; fprc = fprc->ftpc_next) {
1301 lck_mtx_unlock(&bucket->ftb_mtx);
1310 * Drop the bucket lock so we don't try to perform a sleeping
1313 lck_mtx_unlock(&bucket->ftb_mtx);
1320 lck_mtx_lock(&bucket->ftb_mtx);
1324 * been created for this pid while we weren't under the bucket lock.
1326 for (fprc = bucket->ftb_data; fprc != NULL; fprc = fprc->ftpc_next) {
1329 lck_mtx_unlock(&bucket->ftb_mtx);
1346 new_fprc->ftpc_next = bucket->ftb_data;
1347 bucket->ftb_data = new_fprc;
1349 lck_mtx_unlock(&bucket->ftb_mtx);
1357 fasttrap_bucket_t *bucket;
1372 bucket = &fasttrap_procs.fth_table[FASTTRAP_PROCS_INDEX(pid)];
1373 lck_mtx_lock(&bucket->ftb_mtx);
1375 fprcp = (fasttrap_proc_t **)&bucket->ftb_data;
1390 lck_mtx_unlock(&bucket->ftb_mtx);
1416 fasttrap_bucket_t *bucket;
1424 bucket = &fasttrap_provs.fth_table[FASTTRAP_PROVS_INDEX(pid, name)];
1425 lck_mtx_lock(&bucket->ftb_mtx);
1430 for (fp = bucket->ftb_data; fp != NULL; fp = fp->ftp_next) {
1438 lck_mtx_unlock(&bucket->ftb_mtx);
1444 * Drop the bucket lock so we don't try to perform a sleeping
1447 lck_mtx_unlock(&bucket->ftb_mtx);
1506 lck_mtx_lock(&bucket->ftb_mtx);
1510 * been created for this pid while we weren't under the bucket lock.
1512 for (fp = bucket->ftb_data; fp != NULL; fp = fp->ftp_next) {
1516 lck_mtx_unlock(&bucket->ftb_mtx);
1538 lck_mtx_unlock(&bucket->ftb_mtx);
1544 new_fp->ftp_next = bucket->ftb_data;
1545 bucket->ftb_data = new_fp;
1548 lck_mtx_unlock(&bucket->ftb_mtx);
1584 * modifications to it because we have locked the bucket that
1603 fasttrap_bucket_t *bucket;
1608 bucket = &fasttrap_provs.fth_table[FASTTRAP_PROVS_INDEX(pid, name)];
1609 lck_mtx_lock(&bucket->ftb_mtx);
1611 for (fp = bucket->ftb_data; fp != NULL; fp = fp->ftp_next) {
1618 lck_mtx_unlock(&bucket->ftb_mtx);
1626 lck_mtx_unlock(&bucket->ftb_mtx);
1639 * We obviously need to take the bucket lock before the provider lock
1643 * bucket lock therefore protects the integrity of the provider hash
1659 lck_mtx_unlock(&bucket->ftb_mtx);