Lines Matching refs:bhp

62 query_buffer_locks(bindhead * bhp)  in query_buffer_locks()  argument
67 if (query_lock(&bhp->bh_strlock) == 1) in query_buffer_locks()
73 if (query_lock(&bhp->bh_lock) == 1) in query_buffer_locks()
78 (void) printf("Buckets: %d - locks held:\n", bhp->bh_bktcnt); in query_buffer_locks()
79 for (i = 0; i < bhp->bh_bktcnt; i++) { in query_buffer_locks()
80 if (query_lock(&bhp->bh_bkts[i].bb_lock) == 1) { in query_buffer_locks()
92 clear_buffer_locks(bindhead * bhp) in clear_buffer_locks() argument
96 if (query_lock(&bhp->bh_strlock) == 1) { in clear_buffer_locks()
97 (void) _lwp_mutex_unlock(&bhp->bh_strlock); in clear_buffer_locks()
100 if (query_lock(&bhp->bh_lock) == 1) { in clear_buffer_locks()
101 (void) _lwp_mutex_unlock(&bhp->bh_lock); in clear_buffer_locks()
104 for (i = 0; i < bhp->bh_bktcnt; i++) { in clear_buffer_locks()
105 if (query_lock(&bhp->bh_bkts[i].bb_lock) == 1) { in clear_buffer_locks()
106 (void) _lwp_mutex_unlock(&bhp->bh_bkts[i].bb_lock); in clear_buffer_locks()
113 set_buffer_locks(bindhead * bhp) in set_buffer_locks() argument
117 for (i = 0; i < bhp->bh_bktcnt; i++) in set_buffer_locks()
118 (void) _lwp_mutex_lock(&bhp->bh_bkts[i].bb_lock); in set_buffer_locks()
120 (void) _lwp_mutex_lock(&bhp->bh_strlock); in set_buffer_locks()
121 (void) _lwp_mutex_lock(&bhp->bh_lock); in set_buffer_locks()
129 bindhead *bhp, *tmp_bhp; in main() local
168 if ((bhp = (bindhead *)mmap(0, sizeof (bindhead), in main()
176 query_buffer_locks(bhp); in main()
181 clear_buffer_locks(bhp); in main()
185 set_buffer_locks(bhp); in main()
190 if ((tmp_bhp = (bindhead *)mmap(0, bhp->bh_size, in main()
198 (void) munmap((void *)bhp, sizeof (bindhead)); in main()
199 bhp = tmp_bhp; in main()
217 for (i = 0; i < bhp->bh_bktcnt; i++) { in main()
220 unsigned int bep_off = bhp->bh_bkts[i].bb_head; in main()
224 bep = (binding_entry *)((char *)bhp + bep_off); in main()
228 (char *)bhp + bep->be_lib_name, in main()
229 (char *)bhp + bep->be_sym_name, in main()