Searched defs:bhp (Results 1 - 12 of 12) sorted by relevance

/illumos-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_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_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_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...]
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_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...]
/illumos-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...]
/illumos-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...]
/illumos-gate/usr/src/lib/libbrand/common/
H A Dlibbrand.c228 struct brand_handle *bhp; local
251 if ((bhp = malloc(sizeof (struct brand_handle))) == NULL)
253 bzero(bhp, sizeof (struct brand_handle));
255 (void) strcpy(bhp->bh_name, name);
262 if ((bhp->bh_config = open_xml_file(path)) == NULL) {
263 brand_close((brand_handle_t)bhp);
271 if ((node = xmlDocGetRootElement(bhp->bh_config)) == NULL) {
272 brand_close((brand_handle_t)bhp);
277 brand_close((brand_handle_t)bhp);
282 brand_close((brand_handle_t)bhp);
312 struct brand_handle *bhp = (struct brand_handle *)bh; local
387 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
455 struct brand_handle *bhp = (struct brand_handle *)bh; local
464 struct brand_handle *bhp = (struct brand_handle *)bh; local
472 struct brand_handle *bhp = (struct brand_handle *)bh; local
485 struct brand_handle *bhp = (struct brand_handle *)bh; local
494 struct brand_handle *bhp = (struct brand_handle *)bh; local
503 struct brand_handle *bhp = (struct brand_handle *)bh; local
512 struct brand_handle *bhp = (struct brand_handle *)bh; local
520 struct brand_handle *bhp = (struct brand_handle *)bh; local
528 struct brand_handle *bhp = (struct brand_handle *)bh; local
544 struct brand_handle *bhp = (struct brand_handle *)bh; local
554 struct brand_handle *bhp = (struct brand_handle *)bh; local
564 struct brand_handle *bhp = (struct brand_handle *)bh; local
574 struct brand_handle *bhp = (struct brand_handle *)bh; local
582 struct brand_handle *bhp = (struct brand_handle *)bh; local
590 struct brand_handle *bhp = (struct brand_handle *)bh; local
599 struct brand_handle *bhp = (struct brand_handle *)bh; local
608 struct brand_handle *bhp = (struct brand_handle *)bh; local
617 struct brand_handle *bhp = (struct brand_handle *)bh; local
626 struct brand_handle *bhp = (struct brand_handle *)bh; local
635 struct brand_handle *bhp = (struct brand_handle *)bh; local
644 struct brand_handle *bhp = (struct brand_handle *)bh; local
653 struct brand_handle *bhp = (struct brand_handle *)bh; local
662 struct brand_handle *bhp = (struct brand_handle *)bh; local
671 struct brand_handle *bhp = (struct brand_handle *)bh; local
680 struct brand_handle *bhp = (struct brand_handle *)bh; local
689 struct brand_handle *bhp = (struct brand_handle *)bh; local
698 struct brand_handle *bhp = (struct brand_handle *)bh; local
706 struct brand_handle *bhp = (struct brand_handle *)bh; local
715 struct brand_handle *bhp = (struct brand_handle *)bh; local
724 struct brand_handle *bhp = (struct brand_handle *)bh; local
732 struct brand_handle *bhp = (struct brand_handle *)bh; local
767 struct brand_handle *bhp = (struct brand_handle *)bh; local
813 i_brand_platform_iter_mounts(struct brand_handle *bhp, const char *zonename, const char *zonepath, int (*func)(void *, const char *, const char *, const char *, const char *), void *data, const xmlChar *mount_type) argument
892 struct brand_handle *bhp = (struct brand_handle *)bh; local
907 struct brand_handle *bhp = (struct brand_handle *)bh; local
922 struct brand_handle *bhp = (struct brand_handle *)bh; local
969 struct brand_handle *bhp = (struct brand_handle *)bh; local
[all...]

Completed in 72 milliseconds