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

/opensolaris-onvv-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_buf.c59 fmd_buf_hash_create(fmd_buf_hash_t *bhp) argument
61 bhp->bh_hashlen = fmd.d_str_buckets;
62 bhp->bh_hash = fmd_zalloc(sizeof (void *) * bhp->bh_hashlen, FMD_SLEEP);
63 bhp->bh_count = 0;
67 fmd_buf_hash_destroy(fmd_buf_hash_t *bhp) argument
73 for (i = 0; i < bhp->bh_hashlen; i++) {
74 for (bp = bhp->bh_hash[i]; bp != NULL; bp = np) {
81 fmd_free(bhp->bh_hash, sizeof (void *) * bhp
87 fmd_buf_hash_apply(fmd_buf_hash_t *bhp, fmd_buf_f *func, void *arg) argument
99 fmd_buf_hash_commit(fmd_buf_hash_t *bhp) argument
111 fmd_buf_hash_count(fmd_buf_hash_t *bhp) argument
117 fmd_buf_insert(fmd_buf_hash_t *bhp, const char *name, size_t size) argument
130 fmd_buf_lookup(fmd_buf_hash_t *bhp, const char *name) argument
144 fmd_buf_delete(fmd_buf_hash_t *bhp, const char *name) argument
[all...]
H A Dfmd_api.c1495 fmd_buf_hash_t *bhp = fmd_buf_gethash(mp, cp); local
1496 fmd_buf_t *bp = fmd_buf_lookup(bhp, name);
1513 bp = fmd_buf_insert(bhp, name, size);
1532 fmd_buf_hash_t *bhp = fmd_buf_gethash(mp, cp); local
1533 fmd_buf_t *bp = fmd_buf_lookup(bhp, name);
1537 fmd_buf_delete(bhp, name);
1572 fmd_buf_hash_t *bhp = fmd_buf_gethash(mp, cp); local
1573 fmd_buf_t *bp = fmd_buf_lookup(bhp, name);
1590 bp = fmd_buf_insert(bhp, name, size);
1613 fmd_buf_hash_t *bhp local
[all...]
/opensolaris-onvv-gate/usr/src/cmd/sgs/link_audit/common/
H A Ddumpbind.c62 query_buffer_locks(bindhead * bhp) argument
67 if (query_lock(&bhp->bh_strlock) == 1)
73 if (query_lock(&bhp->bh_lock) == 1)
78 (void) printf("Buckets: %d - locks held:\n", bhp->bh_bktcnt);
79 for (i = 0; i < bhp->bh_bktcnt; i++) {
80 if (query_lock(&bhp->bh_bkts[i].bb_lock) == 1) {
92 clear_buffer_locks(bindhead * bhp) argument
96 if (query_lock(&bhp->bh_strlock) == 1) {
97 (void) _lwp_mutex_unlock(&bhp->bh_strlock);
100 if (query_lock(&bhp
113 set_buffer_locks(bindhead * bhp) argument
129 bindhead *bhp, *tmp_bhp; local
[all...]
H A Dbindings.c47 static bindhead *bhp = NULL; variable
121 if ((new_bhp = mmap(0, bhp->bh_size, PROT_READ | PROT_WRITE,
126 bt_unlock(&bhp->bh_lock);
132 (void) munmap((caddr_t)bhp, current_map_len);
133 bhp = (bindhead *)new_bhp;
134 current_map_len = bhp->bh_size;
145 bt_unlock(&bhp->bh_lock);
148 if (ftruncate(fd, bhp->bh_size + BLKSIZE) == -1) {
151 bt_unlock(&bhp->bh_lock);
154 bhp
[all...]
/opensolaris-onvv-gate/usr/src/cmd/sendmail/db/mp/
H A Dmp_fput.c35 BH *bhp; local
85 bhp = (BH *)((u_int8_t *)pgaddr - SSZA(BH, buf));
88 if (LF_ISSET(DB_MPOOL_CLEAN) && F_ISSET(bhp, BH_DIRTY)) {
91 F_CLR(bhp, BH_DIRTY);
93 if (LF_ISSET(DB_MPOOL_DIRTY) && !F_ISSET(bhp, BH_DIRTY)) {
96 F_SET(bhp, BH_DIRTY);
99 F_SET(bhp, BH_DISCARD);
105 if (bhp->ref == 0) {
107 __memp_fn(dbmfp), (u_long)bhp->pgno);
117 if (--bhp
[all...]
H A Dmp_fget.c37 BH *bhp; local
93 bhp = NULL;
166 for (bhp = SH_TAILQ_FIRST(&dbmp->htab[bucket], __bh);
167 bhp != NULL; bhp = SH_TAILQ_NEXT(bhp, hq, __bh)) {
169 if (bhp->pgno != *pgnoaddr || bhp->mf_offset != mf_offset)
173 if (bhp->ref == UINT16_T_MAX) {
176 __memp_fn(dbmfp), (u_long)bhp
[all...]
H A Dmp_region.c58 BH *bhp, *nbhp; local
82 for (bhp =
83 SH_TAILQ_FIRST(&mp->bhfq, __bh); bhp != NULL; bhp = nbhp) {
84 nbhp = SH_TAILQ_NEXT(bhp, q, __bh);
86 if (__db_shsizeof(bhp) == len) {
87 SH_TAILQ_REMOVE(&mp->bhfq, bhp, q, __bh);
89 *offsetp = R_OFFSET(dbmp, bhp);
90 *(void **)retp = bhp;
97 for (bhp
[all...]
H A Dmp_sync.c38 BH *bhp, **bharray; local
131 for (bhp = SH_TAILQ_FIRST(&mp->bhq, __bh);
132 bhp != NULL; bhp = SH_TAILQ_NEXT(bhp, q, __bh))
133 if (F_ISSET(bhp, BH_DIRTY) || bhp->ref != 0) {
134 F_SET(bhp, BH_WRITE);
138 mfp = R_ADDR(dbmp, bhp->mf_offset);
157 if (bhp
318 BH *bhp, **bharray; local
446 BH *bhp; local
[all...]
H A Dmp_bh.c37 __memp_bhwrite(dbmp, mfp, bhp, restartp, wrotep)
40 BH *bhp;
129 found: ret = __memp_pgwrite(dbmfp, bhp, restartp, wrotep);
147 __memp_pgread(dbmfp, bhp, can_create)
149 BH *bhp;
163 F_SET(bhp, BH_LOCKED | BH_TRASH);
164 LOCKBUFFER(dbmp, bhp);
185 db_io.pgno = bhp->pgno;
186 db_io.buf = bhp->buf;
201 __memp_fn(dbmfp), (u_long)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_pr.c171 BH *bhp; local
242 for (bhp = SH_TAILQ_FIRST(&dbmp->htab[bucket], __bh);
243 bhp != NULL; bhp = SH_TAILQ_NEXT(bhp, hq, __bh))
244 __memp_pbh(dbmp, bhp, fmap, fp);
252 for (bhp = SH_TAILQ_FIRST(&dbmp->mp->bhq, __bh);
253 bhp != NULL; bhp = SH_TAILQ_NEXT(bhp,
[all...]
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_DIRT
[all...]
/opensolaris-onvv-gate/usr/src/lib/libbrand/common/
H A Dlibbrand.c224 struct brand_handle *bhp; local
247 if ((bhp = malloc(sizeof (struct brand_handle))) == NULL)
249 bzero(bhp, sizeof (struct brand_handle));
251 (void) strcpy(bhp->bh_name, name);
258 if ((bhp->bh_config = open_xml_file(path)) == NULL) {
259 brand_close((brand_handle_t)bhp);
267 if ((node = xmlDocGetRootElement(bhp->bh_config)) == NULL) {
268 brand_close((brand_handle_t)bhp);
273 brand_close((brand_handle_t)bhp);
278 brand_close((brand_handle_t)bhp);
308 struct brand_handle *bhp = (struct brand_handle *)bh; local
383 brand_get_value(struct brand_handle *bhp, const char *zonename, const char *zonepath, const char *username, const char *curr_zone, char *buf, size_t len, const xmlChar *tagname, boolean_t substitute, boolean_t optional) argument
451 struct brand_handle *bhp = (struct brand_handle *)bh; local
460 struct brand_handle *bhp = (struct brand_handle *)bh; local
468 struct brand_handle *bhp = (struct brand_handle *)bh; local
481 struct brand_handle *bhp = (struct brand_handle *)bh; local
490 struct brand_handle *bhp = (struct brand_handle *)bh; local
499 struct brand_handle *bhp = (struct brand_handle *)bh; local
507 struct brand_handle *bhp = (struct brand_handle *)bh; local
516 struct brand_handle *bhp = (struct brand_handle *)bh; local
526 struct brand_handle *bhp = (struct brand_handle *)bh; local
536 struct brand_handle *bhp = (struct brand_handle *)bh; local
546 struct brand_handle *bhp = (struct brand_handle *)bh; local
554 struct brand_handle *bhp = (struct brand_handle *)bh; local
562 struct brand_handle *bhp = (struct brand_handle *)bh; local
571 struct brand_handle *bhp = (struct brand_handle *)bh; local
580 struct brand_handle *bhp = (struct brand_handle *)bh; local
589 struct brand_handle *bhp = (struct brand_handle *)bh; local
598 struct brand_handle *bhp = (struct brand_handle *)bh; local
607 struct brand_handle *bhp = (struct brand_handle *)bh; local
616 struct brand_handle *bhp = (struct brand_handle *)bh; local
625 struct brand_handle *bhp = (struct brand_handle *)bh; local
634 struct brand_handle *bhp = (struct brand_handle *)bh; local
643 struct brand_handle *bhp = (struct brand_handle *)bh; local
652 struct brand_handle *bhp = (struct brand_handle *)bh; local
661 struct brand_handle *bhp = (struct brand_handle *)bh; local
670 struct brand_handle *bhp = (struct brand_handle *)bh; local
678 struct brand_handle *bhp = (struct brand_handle *)bh; local
687 struct brand_handle *bhp = (struct brand_handle *)bh; local
696 struct brand_handle *bhp = (struct brand_handle *)bh; local
704 struct brand_handle *bhp = (struct brand_handle *)bh; local
739 struct brand_handle *bhp = (struct brand_handle *)bh; local
785 i_brand_platform_iter_mounts(struct brand_handle *bhp, const char *zonepath, int (*func)(void *, const char *, const char *, const char *, const char *), void *data, const xmlChar *mount_type) argument
864 struct brand_handle *bhp = (struct brand_handle *)bh; local
879 struct brand_handle *bhp = (struct brand_handle *)bh; local
894 struct brand_handle *bhp = (struct brand_handle *)bh; local
941 struct brand_handle *bhp = (struct brand_handle *)bh; local
[all...]
/opensolaris-onvv-gate/usr/src/cmd/sendmail/db/include/
H A Dmp.h102 #define LOCKBUFFER(dbmp, bhp) \
104 (void)__db_mutex_lock(&(bhp)->mutex, (dbmp)->reginfo.fd)
105 #define UNLOCKBUFFER(dbmp, bhp) \
107 (void)__db_mutex_unlock(&(bhp)->mutex, (dbmp)->reginfo.fd)

Completed in 175 milliseconds