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

/osnet-11/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...]
/osnet-11/usr/src/lib/libbrand/common/
H A Dlibbrand.c233 struct brand_handle *bhp; local
256 if ((bhp = malloc(sizeof (struct brand_handle))) == NULL)
258 bzero(bhp, sizeof (struct brand_handle));
260 (void) strcpy(bhp->bh_name, name);
267 if ((bhp->bh_config = open_xml_file(path)) == NULL) {
268 brand_close((brand_handle_t)bhp);
276 if ((node = xmlDocGetRootElement(bhp->bh_config)) == NULL) {
277 brand_close((brand_handle_t)bhp);
282 brand_close((brand_handle_t)bhp);
287 brand_close((brand_handle_t)bhp);
317 struct brand_handle *bhp = (struct brand_handle *)bh; local
439 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
507 struct brand_handle *bhp = (struct brand_handle *)bh; local
516 struct brand_handle *bhp = (struct brand_handle *)bh; local
524 struct brand_handle *bhp = (struct brand_handle *)bh; local
537 struct brand_handle *bhp = (struct brand_handle *)bh; local
546 struct brand_handle *bhp = (struct brand_handle *)bh; local
555 struct brand_handle *bhp = (struct brand_handle *)bh; local
563 struct brand_handle *bhp = (struct brand_handle *)bh; local
572 struct brand_handle *bhp = (struct brand_handle *)bh; local
582 struct brand_handle *bhp = (struct brand_handle *)bh; local
592 struct brand_handle *bhp = (struct brand_handle *)bh; local
602 struct brand_handle *bhp = (struct brand_handle *)bh; local
610 struct brand_handle *bhp = (struct brand_handle *)bh; local
618 struct brand_handle *bhp = (struct brand_handle *)bh; local
627 struct brand_handle *bhp = (struct brand_handle *)bh; local
636 struct brand_handle *bhp = (struct brand_handle *)bh; local
645 struct brand_handle *bhp = (struct brand_handle *)bh; local
654 struct brand_handle *bhp = (struct brand_handle *)bh; local
663 struct brand_handle *bhp = (struct brand_handle *)bh; local
672 struct brand_handle *bhp = (struct brand_handle *)bh; local
681 struct brand_handle *bhp = (struct brand_handle *)bh; local
690 struct brand_handle *bhp = (struct brand_handle *)bh; local
699 struct brand_handle *bhp = (struct brand_handle *)bh; local
708 struct brand_handle *bhp = (struct brand_handle *)bh; local
717 struct brand_handle *bhp = (struct brand_handle *)bh; local
726 struct brand_handle *bhp = (struct brand_handle *)bh; local
734 struct brand_handle *bhp = (struct brand_handle *)bh; local
743 struct brand_handle *bhp = (struct brand_handle *)bh; local
752 struct brand_handle *bhp = (struct brand_handle *)bh; local
766 struct brand_handle *bhp = (struct brand_handle *)bh; local
848 struct brand_handle *bhp = (struct brand_handle *)bh; local
923 struct brand_handle *bhp = (struct brand_handle *)bh; local
969 i_brand_platform_iter_mounts(struct brand_handle *bhp, const char *zonepath, const char *zonename, int (*func)(void *, const char *, const char *, const char *, const char *), void *data, const xmlChar *mount_type) argument
1049 struct brand_handle *bhp = (struct brand_handle *)bh; local
1073 struct brand_handle *bhp = (struct brand_handle *)bh; local
1129 struct brand_handle *bhp = (struct brand_handle *)bh; local
1144 struct brand_handle *bhp = (struct brand_handle *)bh; local
1191 struct brand_handle *bhp = (struct brand_handle *)bh; local
1275 struct brand_handle *bhp = (struct brand_handle *)bh; local
[all...]
/osnet-11/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 63 milliseconds