Home
last modified time | relevance | path

Searched refs:bhp (Results 1 – 14 of 14) sorted by relevance

/illumos-gate/usr/src/cmd/sgs/link_audit/common/
H A Dbindings.c162 bt_lock(&bhp->bh_lock); in get_new_strbuf()
163 while (bhp->bh_end + STRBLKSIZE > bhp->bh_size) in get_new_strbuf()
166 bhp->bh_strcur = bhp->bh_end; in get_new_strbuf()
167 bhp->bh_end = bhp->bh_strend = bhp->bh_strcur + STRBLKSIZE; in get_new_strbuf()
185 if ((slen + 1) > (bhp->bh_strend - bhp->bh_strcur)) in save_str()
187 bptr = bhp->bh_strcur; in save_str()
188 sptr = (char *)bhp + bhp->bh_strcur; in save_str()
201 bt_lock(&bhp->bh_lock); in get_new_entry()
202 while ((sizeof (binding_entry) + bhp->bh_end) > bhp->bh_size) in get_new_entry()
204 new_ent = bhp->bh_end; in get_new_entry()
[all …]
H A Ddumpbind.c62 query_buffer_locks(bindhead * bhp) in query_buffer_locks() argument
73 if (query_lock(&bhp->bh_lock) == 1) in query_buffer_locks()
92 clear_buffer_locks(bindhead * bhp) in clear_buffer_locks() argument
100 if (query_lock(&bhp->bh_lock) == 1) { 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()
129 bindhead *bhp, *tmp_bhp; in main() local
176 query_buffer_locks(bhp); in main()
181 clear_buffer_locks(bhp); in main()
185 set_buffer_locks(bhp); in main()
[all …]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_buf.c59 bhp->bh_hashlen = fmd.d_str_buckets; in fmd_buf_hash_create()
60 bhp->bh_hash = fmd_zalloc(sizeof (void *) * bhp->bh_hashlen, FMD_SLEEP); in fmd_buf_hash_create()
61 bhp->bh_count = 0; in fmd_buf_hash_create()
79 fmd_free(bhp->bh_hash, sizeof (void *) * bhp->bh_hashlen); in fmd_buf_hash_destroy()
80 bzero(bhp, sizeof (fmd_buf_hash_t)); in fmd_buf_hash_destroy()
111 return (bhp->bh_count); in fmd_buf_hash_count()
120 bp->buf_next = bhp->bh_hash[h]; in fmd_buf_insert()
121 bhp->bh_hash[h] = bp; in fmd_buf_insert()
122 bhp->bh_count++; in fmd_buf_insert()
157 ASSERT(bhp->bh_count != 0); in fmd_buf_delete()
[all …]
H A Dfmd_api.c1495 fmd_buf_hash_t *bhp = fmd_buf_gethash(mp, cp); in fmd_buf_create() local
1496 fmd_buf_t *bp = fmd_buf_lookup(bhp, name); in fmd_buf_create()
1513 bp = fmd_buf_insert(bhp, name, size); in fmd_buf_create()
1532 fmd_buf_hash_t *bhp = fmd_buf_gethash(mp, cp); in fmd_buf_destroy() local
1533 fmd_buf_t *bp = fmd_buf_lookup(bhp, name); in fmd_buf_destroy()
1537 fmd_buf_delete(bhp, name); in fmd_buf_destroy()
1572 fmd_buf_hash_t *bhp = fmd_buf_gethash(mp, cp); in fmd_buf_write() local
1573 fmd_buf_t *bp = fmd_buf_lookup(bhp, name); in fmd_buf_write()
1590 bp = fmd_buf_insert(bhp, name, size); in fmd_buf_write()
1613 fmd_buf_hash_t *bhp = fmd_buf_gethash(mp, cp); in fmd_buf_size() local
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/mp/
H A Dmp_fget.c37 BH *bhp; local
93 bhp = NULL;
167 bhp != NULL; bhp = SH_TAILQ_NEXT(bhp, hq, __bh)) {
169 if (bhp->pgno != *pgnoaddr || bhp->mf_offset != mf_offset)
187 ++bhp->ref;
211 LOCKBUFFER(dbmp, bhp);
213 UNLOCKBUFFER(dbmp, bhp);
258 bhp->ref = 1;
259 bhp->pgno = *pgnoaddr;
310 if (bhp->ref == 1)
[all …]
H A Dmp_sync.c38 BH *bhp, **bharray; local
132 bhp != NULL; bhp = SH_TAILQ_NEXT(bhp, q, __bh))
133 if (F_ISSET(bhp, BH_DIRTY) || bhp->ref != 0) {
158 ++bhp->ref;
238 bhp != NULL; bhp = SH_TAILQ_NEXT(bhp, q, __bh))
352 bhp != NULL; bhp = SH_TAILQ_NEXT(bhp, q, __bh)) {
355 if (bhp->ref != 0 || F_ISSET(bhp, BH_LOCKED)) {
360 ++bhp->ref;
446 BH *bhp; local
483 bhp != NULL; bhp = SH_TAILQ_NEXT(bhp, q, __bh)) {
[all …]
H A Dmp_bh.c40 BH *bhp;
149 BH *bhp;
164 LOCKBUFFER(dbmp, bhp);
186 db_io.buf = bhp->buf;
233 F_CLR(bhp, BH_LOCKED);
259 BH *bhp;
357 db_io.buf = bhp->buf;
462 BH *bhp;
492 mpreg->pgin(bhp->pgno, bhp->buf, dbtp)) != 0)
496 mpreg->pgout(bhp->pgno, bhp->buf, dbtp)) != 0)
[all …]
H A Dmp_region.c58 BH *bhp, *nbhp; local
82 for (bhp =
83 SH_TAILQ_FIRST(&mp->bhfq, __bh); bhp != NULL; bhp = nbhp) {
97 for (bhp =
98 SH_TAILQ_FIRST(&mp->bhfq, __bh); bhp != NULL; bhp = nbhp) {
117 for (bhp =
118 SH_TAILQ_FIRST(&mp->bhq, __bh); bhp != NULL; bhp = nbhp) {
122 if (bhp->ref != 0 || F_ISSET(bhp, BH_LOCKED))
140 ++bhp->ref;
144 --bhp->ref;
[all …]
H A Dmp_fput.c35 BH *bhp; local
91 F_CLR(bhp, BH_DIRTY);
96 F_SET(bhp, BH_DIRTY);
99 F_SET(bhp, BH_DISCARD);
105 if (bhp->ref == 0) {
117 if (--bhp->ref > 0) {
123 SH_TAILQ_REMOVE(&mp->bhq, bhp, q, __bh);
124 if (F_ISSET(bhp, BH_DISCARD))
137 if (F_ISSET(bhp, BH_WRITE))
138 if (F_ISSET(bhp, BH_DIRTY)) {
[all …]
H A Dmp_pr.c171 BH *bhp; local
243 bhp != NULL; bhp = SH_TAILQ_NEXT(bhp, hq, __bh))
253 bhp != NULL; bhp = SH_TAILQ_NEXT(bhp, q, __bh))
254 __memp_pbh(dbmp, bhp, fmap, fp);
271 __memp_pbh(dbmp, bhp, fmap, fp) in __memp_pbh() argument
273 BH *bhp;
294 (u_long)bhp->pgno, (u_long)bhp->mf_offset,
295 (u_long)bhp->ref, (u_long)R_OFFSET(dbmp, bhp));
298 (u_long)bhp->pgno, i + 1,
299 (u_long)bhp->ref, (u_long)R_OFFSET(dbmp, bhp));
[all …]
H A Dmp_fset.c35 BH *bhp; local
64 bhp = (BH *)((u_int8_t *)pgaddr - SSZA(BH, buf));
68 if (LF_ISSET(DB_MPOOL_CLEAN) && F_ISSET(bhp, BH_DIRTY)) {
71 F_CLR(bhp, BH_DIRTY);
73 if (LF_ISSET(DB_MPOOL_DIRTY) && !F_ISSET(bhp, BH_DIRTY)) {
76 F_SET(bhp, BH_DIRTY);
79 F_SET(bhp, BH_DISCARD);
H A Dmp_fopen.c501 BH *bhp, *nbhp; local
524 for (bhp = SH_TAILQ_FIRST(&mp->bhq, __bh); bhp != NULL; bhp = nbhp) {
525 nbhp = SH_TAILQ_NEXT(bhp, q, __bh);
529 if (F_ISSET(bhp, BH_DIRTY))
533 (u_long)bhp->pgno, (u_long)bhp->ref);
536 if (bhp->mf_offset == mf_offset) {
537 if (F_ISSET(bhp, BH_DIRTY)) {
541 __memp_bhfree(dbmp, mfp, bhp, 0);
542 SH_TAILQ_INSERT_HEAD(&mp->bhfq, bhp, q, __bh);
/illumos-gate/usr/src/lib/libbrand/common/
H A Dlibbrand.c218 struct brand_handle *bhp; in brand_open() local
293 return ((brand_handle_t)bhp); in brand_open()
303 if (bhp->bh_platform != NULL) in brand_close()
304 xmlFreeDoc(bhp->bh_platform); in brand_close()
305 if (bhp->bh_config != NULL) in brand_close()
306 xmlFreeDoc(bhp->bh_config); in brand_close()
307 free(bhp); in brand_close()
463 if (len <= strlen(bhp->bh_name)) in brand_get_brandname()
466 (void) strcpy(buf, bhp->bh_name); in brand_get_brandname()
754 assert(bhp != NULL); in brand_allow_exclusive_ip()
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/include/
H A Dmp.h102 #define LOCKBUFFER(dbmp, bhp) \ argument
104 (void)__db_mutex_lock(&(bhp)->mutex, (dbmp)->reginfo.fd)
105 #define UNLOCKBUFFER(dbmp, bhp) \ argument
107 (void)__db_mutex_unlock(&(bhp)->mutex, (dbmp)->reginfo.fd)