Home
last modified time | relevance | path

Searched refs:pgno (Results 1 – 25 of 79) sorted by relevance

1234

/titanic_41/usr/src/cmd/sendmail/db/btree/
H A Dbt_cursor.c87 ((cursor)->pgno == (saved_copy).pgno && \
105 cp->pgno = PGNO_INVALID;
239 db_pgno_t pgno; local
251 F_ISSET(dbp, DB_AM_RDONLY), cp->pgno != PGNO_INVALID)) != 0)
276 0, cp->pgno, DB_LOCK_WRITE, &lock)) != 0)
290 pgno = cp->pgno;
293 pgno = cp->dpgno;
297 if ((ret = memp_fget(dbp->mpf, &pgno, 0, &h)) != 0)
314 (void)__bam_ca_delete(dbp, pgno, indx, 1);
362 key, data, flags, cp->pgno != PGNO_INVALID)) != 0)
[all …]
H A Dbt_page.c80 db_pgno_t pgno; local
88 pgno = PGNO_METADATA;
89 if ((ret = __bam_lget(dbc, 0, pgno, DB_LOCK_WRITE, &metalock)) != 0)
91 if ((ret = memp_fget(dbp->mpf, &pgno, 0, (PAGE **)&meta)) != 0)
95 if ((ret = memp_fget(dbp->mpf, &pgno, DB_MPOOL_NEW, &h)) != 0)
98 h->pgno = pgno;
100 pgno = meta->free;
101 if ((ret = memp_fget(dbp->mpf, &pgno, 0, &h)) != 0)
110 h->pgno, (u_int32_t)type, meta->free)) != 0)
118 P_INIT(h, dbp->pgsize, h->pgno, PGNO_INVALID, PGNO_INVALID, 0, type);
[all …]
H A Dbt_stat.c44 db_pgno_t lastpgno, pgno; local
70 pgno = PGNO_ROOT;
71 if ((ret = __bam_lget(dbc, 0, pgno, DB_LOCK_READ, &lock)) != 0)
73 if ((ret = memp_fget(dbp->mpf, &pgno, 0, (PAGE **)&h)) != 0)
84 pgno = PGNO_METADATA;
85 if ((ret = __bam_lget(dbc, 0, pgno, DB_LOCK_READ, &lock)) != 0)
87 if ((ret = memp_fget(dbp->mpf, &pgno, 0, (PAGE **)&meta)) != 0)
112 for (sp->bt_free = 0, pgno = meta->free; pgno != PGNO_INVALID;) {
115 if ((ret = memp_fget(dbp->mpf, &pgno, 0, &h)) != 0) {
120 pgno = h->next_pgno;
[all …]
H A Dbt_curadj.c46 (u_int)dbc, (u_int)cp, (u_long)cp->pgno, (u_long)cp->indx,
66 __bam_ca_delete(dbp, pgno, indx, delete) in __bam_ca_delete() argument
68 db_pgno_t pgno;
96 if ((cp->pgno == pgno && cp->indx == indx) ||
97 (cp->dpgno == pgno && cp->dindx == indx)) {
117 __bam_ca_di(dbp, pgno, indx, adjust) in __bam_ca_di() argument
119 db_pgno_t pgno;
137 if (cp->pgno == pgno && cp->indx >= indx)
139 if (cp->dpgno == pgno && cp->dindx >= indx)
179 cp->pgno == fpgno && cp->indx == fi) {
[all …]
H A Dbt_delete.c168 return (__db_pgfmt(dbp, h->pgno));
216 __db_ddup(dbc, bo->pgno, __bam_free)) != 0)
220 __db_doff(dbc, bo->pgno, __bam_free)) != 0)
227 return (__db_pgfmt(dbp, h->pgno));
231 return (__db_pgfmt(dbp, h->pgno));
286 __bam_ca_di(dbp, h->pgno, indx, is_insert ? 1 : -1);
305 db_pgno_t pgno; local
335 if (h->pgno == PGNO_ROOT || NUM_ENT(h) != 1)
373 pgno = TYPE(h) == P_IBTREE ?
374 GET_BINTERNAL(h, 0)->pgno : GET_RINTERNAL(h, 0)->pgno;
[all …]
H A Dbt_split.c138 ret = cp->csp[0].page->pgno == PGNO_ROOT ?
197 P_INIT(lp, dbp->pgsize, lp->pgno,
198 PGNO_INVALID, ISINTERNAL(cp->page) ? PGNO_INVALID : rp->pgno,
200 P_INIT(rp, dbp->pgsize, rp->pgno,
201 ISINTERNAL(cp->page) ? PGNO_INVALID : lp->pgno, PGNO_INVALID,
231 __bam_ca_split(dbp, cp->page->pgno, lp->pgno, rp->pgno, split, 1);
272 P_INIT(rp, dbp->pgsize, rp->pgno,
273 ISINTERNAL(cp->page) ? PGNO_INVALID : cp->page->pgno,
280 P_INIT(lp, dbp->pgsize, cp->page->pgno,
282 ISINTERNAL(cp->page) ? PGNO_INVALID : rp->pgno,
[all …]
H A Dbt_rec.c50 db_pgno_t pgno; local
67 pgno = PGNO_METADATA;
68 if ((ret = memp_fget(mpf, &pgno, 0, &meta)) != 0) {
70 (void)__db_pgerr(file_dbp, pgno);
73 if ((ret = memp_fget(mpf, &argp->pgno, DB_MPOOL_CREATE, &pagep)) != 0) {
80 (void)__db_pgerr(file_dbp, argp->pgno);
92 argp->pgno, PGNO_INVALID, PGNO_INVALID, 0, argp->ptype);
99 argp->pgno, PGNO_INVALID, meta->free, 0, P_INVALID);
121 meta->free = argp->pgno;
154 db_pgno_t pgno; local
[all …]
H A Dbtree_auto.c24 fileid, meta_lsn, page_lsn, pgno, ptype, next) in __bam_pg_alloc_log() argument
32 db_pgno_t pgno;
53 + sizeof(pgno)
78 memcpy(bp, &pgno, sizeof(pgno));
79 bp += sizeof(pgno);
132 printf("\tpgno: %lu\n", (u_long)argp->pgno);
170 memcpy(&argp->pgno, bp, sizeof(argp->pgno));
171 bp += sizeof(argp->pgno);
187 fileid, pgno, meta_lsn, header, next) in __bam_pg_free_log() argument
193 db_pgno_t pgno;
[all …]
/titanic_41/usr/src/cmd/sendmail/db/db/
H A Ddb_overflow.c82 __db_goff(dbp, dbt, tlen, pgno, bpp, bpsz) in __db_goff() argument
86 db_pgno_t pgno;
133 for (curoff = 0, p = dbt->data; pgno != P_INVALID && needed > 0;) {
134 if ((ret = memp_fget(dbp->mpf, &pgno, 0, &h)) != 0) {
135 (void)__db_pgerr(dbp, pgno);
153 pgno = h->next_pgno;
256 __db_ovref(dbc, pgno, adjust) in __db_ovref() argument
258 db_pgno_t pgno;
266 if ((ret = memp_fget(dbp->mpf, &pgno, 0, &h)) != 0) {
267 (void)__db_pgerr(dbp, pgno);
[all …]
H A Ddb_dup.c50 db_pgno_t pgno; local
58 if ((ret = __db_poff(dbc, dbt, &pgno, newfunc)) != 0)
64 bo.pgno = pgno;
126 GET_BOVERFLOW(pagep, indx)->pgno, freefunc)) != 0)
162 __db_dend(dbc, pgno, pp) in __db_dend() argument
164 db_pgno_t pgno;
182 if ((ret = memp_fget(dbp->mpf, &pgno, 0, pp)) != 0) {
183 (void)__db_pgerr(dbp, pgno);
188 if ((pgno = NEXT_PGNO(h)) == PGNO_INVALID)
582 pagep->pgno, &pagep->lsn,
[all …]
H A Ddb_auto.c23 opcode, fileid, pgno, indx, nbytes, hdr, in __db_addrem_log() argument
31 db_pgno_t pgno;
55 + sizeof(pgno)
75 memcpy(bp, &pgno, sizeof(pgno));
76 bp += sizeof(pgno);
151 printf("\tpgno: %lu\n", (u_long)argp->pgno);
207 memcpy(&argp->pgno, bp, sizeof(argp->pgno));
208 bp += sizeof(argp->pgno);
234 opcode, fileid, pgno, pageimage, pagelsn) in __db_split_log() argument
241 db_pgno_t pgno;
[all …]
H A Ddb_pr.c272 db_pgno_t pgno; local
284 pgno = PGNO_METADATA;
285 if ((ret = memp_fget(dbp->mpf, &pgno, 0, &hcp->hdr)) != 0)
349 __db_prnpage(mpf, pgno) in __db_prnpage() argument
351 db_pgno_t pgno;
359 if ((ret = memp_fget(mpf, &pgno, 0, &h)) != 0)
386 db_pgno_t pgno; local
421 (u_long)h->pgno, (u_long)TYPE(h));
424 fprintf(fp, "page %4lu: (%s)\n", (u_long)h->pgno, s);
428 (TYPE(h) == P_LRECNO && h->pgno == PGNO_ROOT))
[all …]
H A Ddb_err.c150 __db_pgerr(dbp, pgno) in __db_pgerr() argument
152 db_pgno_t pgno;
160 "unable to create/retrieve page %lu", (u_long)pgno);
171 __db_pgfmt(dbp, pgno) in __db_pgfmt() argument
173 db_pgno_t pgno;
176 "page %lu: illegal page type or format", (u_long)pgno);
/titanic_41/usr/src/lib/krb5/plugins/kdb/db2/libdb2/mpool/
H A Dmpool.c139 bp->pgno = *pgnoaddr;
141 bp->pgno = *pgnoaddr = mp->npages++;
145 head = &mp->hqh[HASHKEY(bp->pgno)];
164 "mpool_delete: page %d not pinned\n", bp->pgno);
170 head = &mp->hqh[HASHKEY(bp->pgno)];
183 mpool_get(mp, pgno, flags) in mpool_get() argument
185 db_pgno_t pgno;
198 if ((bp = mpool_look(mp, pgno)) != NULL) {
202 "mpool_get: page %d already pinned\n", bp->pgno);
210 head = &mp->hqh[HASHKEY(bp->pgno)];
[all …]
/titanic_41/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_search.c133 next: BT_PUSH(t, h->pgno, idx);
134 pg = GETBINTERNAL(h, idx)->pgno;
163 db_pgno_t pgno; local
188 if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL)
194 BT_PUSH(t, h->pgno, idx);
204 pgno = bi->pgno;
205 BT_PUSH(t, pgno, 0);
211 if ((h = mpool_get(t->bt_mp, pgno, 0)) == NULL)
243 db_pgno_t pgno; local
269 if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL)
[all …]
H A Dbt_split.c110 h = sp->pgno == P_ROOT ?
128 if (sp->pgno == P_ROOT &&
161 if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL)
222 h = h->pgno == P_ROOT ?
242 ((BINTERNAL *)dest)->pgno = rchild->pgno;
248 rchild->pgno, bl->flags & P_BIGKEY);
264 ((RINTERNAL *)dest)->pgno = lchild->pgno;
270 ((RINTERNAL *)dest)->pgno = rchild->pgno;
282 ((RINTERNAL *)dest)->pgno = lchild->pgno;
288 ((RINTERNAL *)dest)->pgno = rchild->pgno;
[all …]
H A Dbt_seq.c150 __bt_setcur(t, e.page->pgno, e.index);
225 pg = GETBINTERNAL(h, 0)->pgno;
246 pg = GETBINTERNAL(h, NEXTINDEX(h) - 1)->pgno;
325 c->pg.pgno = ep->page->pgno;
331 if ((h = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL)
438 if (save.page->pgno != ep->page->pgno) {
452 if (h->pgno != save.page->pgno)
456 if (h->pgno == save.page->pgno)
472 if (h->pgno != save.page->pgno)
505 __bt_setcur(t, pgno, idx) in __bt_setcur() argument
[all …]
H A Dbt_delete.c102 if ((h = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL)
156 db_pgno_t pgno; local
171 if (h->pgno == c->pg.pgno)
180 while (h->pgno != c->pg.pgno) {
188 if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL)
194 BT_PUSH(t, h->pgno, idx);
204 pgno = bi->pgno;
205 BT_PUSH(t, pgno, 0);
211 if ((h = mpool_get(t->bt_mp, pgno, 0)) == NULL)
220 if (h->pgno == c->pg.pgno)
[all …]
H A Dbtree.h83 db_pgno_t pgno; /* this page's page number */ member
137 db_pgno_t pgno; /* page number stored on */ member
153 #define WR_BINTERNAL(p, size, pgno, flags) { \ argument
156 *(db_pgno_t *)p = pgno; \
168 db_pgno_t pgno; /* page number stored below */ member
180 #define WR_RINTERNAL(p, nrecs, pgno) { \ argument
183 *(db_pgno_t *)p = pgno; \
257 db_pgno_t pgno; /* the page number */ member
330 t->bt_sp->pgno = p; \
/titanic_41/usr/src/lib/libsqlite/src/
H A Dpager.c111 Pgno pgno; /* The page number for this page */ member
223 Pgno pgno; /* The page number */ member
304 p->pgno, (int)PGHDR_TO_DATA(p), p->nRef in pager_refinfo()
434 static PgHdr *pager_lookup(Pager *pPager, Pgno pgno){ in pager_lookup() argument
435 PgHdr *p = pPager->aHash[pager_hash(pgno)]; in pager_lookup()
436 while( p && p->pgno!=pgno ){ in pager_lookup()
523 static u32 pager_cksum(Pager *pPager, Pgno pgno, const char *aData){ in pager_cksum() argument
524 u32 cksum = pPager->cksumInit + pgno; in pager_cksum()
541 rc = read32bits(format, jfd, &pgRec.pgno); in pager_playback_one_page()
551 if( pgRec.pgno==0 ){ in pager_playback_one_page()
[all …]
/titanic_41/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/
H A Dhash_page.c101 if (cursorp->pgno == INVALID_PGNO) {
104 cursorp->pgno = ADDR(cursorp->pagep);
109 __get_page(hashp, cursorp->pgno, A_RAW);
117 item_info->seek_found_page = cursorp->pgno;
133 cursorp->pgno = next_pgno;
153 item_info->pgno = cursorp->pgno;
175 cursorp->pgno = INVALID_PGNO;
316 pagep = __get_page(hashp, cursorp->pgno, A_RAW);
327 assert(ADDR(pagep) == cursorp->pgno);
430 if (item_info->pgno == to_find) {
[all …]
/titanic_41/usr/src/cmd/sendmail/db/include/
H A Dbtree_auto.h22 db_pgno_t pgno; member
35 db_pgno_t pgno; member
67 db_pgno_t pgno; member
82 db_pgno_t pgno; member
97 db_pgno_t pgno; member
112 db_pgno_t pgno; member
125 db_pgno_t pgno; member
H A Ddb_auto.h13 db_pgno_t pgno; member
30 db_pgno_t pgno; member
44 db_pgno_t pgno; member
61 db_pgno_t pgno; member
75 db_pgno_t pgno; member
91 db_pgno_t pgno; member
H A Ddb_page.h49 db_pgno_t pgno; /* 08-11: Current page number. */ member
79 db_pgno_t pgno; /* 08-11: Page number (btree compatibility). */ member
133 db_pgno_t pgno; /* 08-11: Current page number. */ member
165 #define PGNO(p) (((PAGE *)p)->pgno)
342 db_pgno_t pgno; /* 04-07: Offpage page number. */ member
346 #define HOFFPAGE_PGNO(p) (((u_int8_t *)p) + SSZ(HOFFPAGE, pgno))
362 db_pgno_t pgno; /* 04-07: Offpage page number. */ member
364 #define HOFFDUP_PGNO(p) (((u_int8_t *)p) + SSZ(HOFFDUP, pgno))
430 db_pgno_t pgno; /* 04-07: Next page number. */ member
467 db_pgno_t pgno; /* 04-07: Page number of referenced page. */ member
[all …]
/titanic_41/usr/src/cmd/sendmail/db/hash/
H A Dhash_rec.c97 ret = memp_fget(mpf, &argp->pgno, 0, &pagep);
107 } else if ((ret = memp_fget(mpf, &argp->pgno,
394 ret = memp_fget(mpf, &argp->pgno, 0, &pagep);
404 } else if ((ret = memp_fget(mpf, &argp->pgno,
511 hcp->hdr->last_freed = argp->pgno;
516 hcp->hdr->last_freed = argp->pgno;
530 ret = memp_fget(mpf, &argp->pgno, 0, &pagep);
541 } else if ((ret = memp_fget(mpf, &argp->pgno,
551 P_INIT(pagep, file_dbp->pgsize, argp->pgno, PGNO_INVALID,
556 P_INIT(pagep, file_dbp->pgsize, argp->pgno, PGNO_INVALID,
[all …]

1234