Home
last modified time | relevance | path

Searched refs:pgno_t (Results 1 – 20 of 20) sorted by relevance

/freebsd-14-stable/include/
HDmpool.h54 pgno_t pgno; /* page number */
66 pgno_t curcache; /* current number of cached pages */
67 pgno_t maxcache; /* max number of cached pages */
68 pgno_t npages; /* number of pages in the file */
72 void (*pgin)(void *, pgno_t, void *);
74 void (*pgout)(void *, pgno_t, void *);
96 MPOOL *mpool_open(void *, int, pgno_t, pgno_t);
97 void mpool_filter(MPOOL *, void (*)(void *, pgno_t, void *),
98 void (*)(void *, pgno_t, void *), void *);
99 void *mpool_new(MPOOL *, pgno_t *, unsigned int);
[all …]
HDdb.h47 typedef uint32_t pgno_t; typedef
/freebsd-14-stable/lib/libc/db/btree/
HDbtree.h66 pgno_t pgno; /* this page's page number */
67 pgno_t prevpg; /* left sibling */
68 pgno_t nextpg; /* right sibling */
86 (sizeof(pgno_t) + sizeof(pgno_t) + sizeof(pgno_t) + \
106 #define LALIGN(n) (((n) + sizeof(pgno_t) - 1) & ~(sizeof(pgno_t) - 1))
107 #define NOVFLSIZE (sizeof(pgno_t) + sizeof(u_int32_t))
120 pgno_t pgno; /* page number stored on */
133 LALIGN(sizeof(u_int32_t) + sizeof(pgno_t) + sizeof(u_char) + (len))
139 *(pgno_t *)p = pgno; \
140 p += sizeof(pgno_t); \
[all …]
HDextern.h44 PAGE *__bt_new(BTREE *, pgno_t *);
45 void __bt_pgin(void *, pgno_t, void *);
46 void __bt_pgout(void *, pgno_t, void *);
47 int __bt_push(BTREE *, pgno_t, int);
52 void __bt_setcur(BTREE *, pgno_t, u_int);
59 int __ovfl_put(BTREE *, const DBT *, pgno_t *);
62 void __bt_dnpage(DB *, pgno_t);
HDbt_conv.c58 __bt_pgin(void *t, pgno_t pg, void *pp) in __bt_pgin()
88 p += sizeof(pgno_t); in __bt_pgin()
92 p += sizeof(pgno_t); in __bt_pgin()
109 p += sizeof(pgno_t); in __bt_pgin()
115 p += sizeof(pgno_t); in __bt_pgin()
123 __bt_pgout(void *t, pgno_t pg, void *pp) in __bt_pgout()
145 p += sizeof(pgno_t); in __bt_pgout()
149 p += sizeof(pgno_t); in __bt_pgout()
166 p += sizeof(pgno_t); in __bt_pgout()
172 p += sizeof(pgno_t); in __bt_pgout()
HDbt_overflow.c80 pgno_t pg; in __ovfl_get()
84 memmove(&pg, p, sizeof(pgno_t)); in __ovfl_get()
85 memmove(&sz, (char *)p + sizeof(pgno_t), sizeof(u_int32_t)); in __ovfl_get()
131 __ovfl_put(BTREE *t, const DBT *dbt, pgno_t *pg) in __ovfl_put()
135 pgno_t npg; in __ovfl_put()
185 pgno_t pg; in __ovfl_delete()
189 memmove(&pg, p, sizeof(pgno_t)); in __ovfl_delete()
190 memmove(&sz, (char *)p + sizeof(pgno_t), sizeof(u_int32_t)); in __ovfl_delete()
HDbt_debug.c59 pgno_t i; in __bt_dump()
130 __bt_dnpage(DB *dbp, pgno_t pgno) in __bt_dnpage()
203 *(pgno_t *)bl->bytes, in __bt_dpage()
204 *(u_int32_t *)(bl->bytes + sizeof(pgno_t))); in __bt_dpage()
211 *(pgno_t *)(bl->bytes + bl->ksize), in __bt_dpage()
213 sizeof(pgno_t))); in __bt_dpage()
223 *(pgno_t *)rl->bytes, in __bt_dpage()
224 *(u_int32_t *)(rl->bytes + sizeof(pgno_t))); in __bt_dpage()
249 pgno_t i, pcont, pinternal, pleaf; in __bt_stat()
HDbt_put.c71 pgno_t pg; in __bt_put()
125 memmove(kb, &pg, sizeof(pgno_t)); in __bt_put()
127 memmove(kb + sizeof(pgno_t), in __bt_put()
137 memmove(db, &pg, sizeof(pgno_t)); in __bt_put()
139 memmove(db + sizeof(pgno_t), in __bt_put()
HDbt_seq.c149 pgno_t pg; in __bt_seqset()
235 pgno_t pg; in __bt_seqadv()
333 pgno_t pg; in __bt_first()
426 __bt_setcur(BTREE *t, pgno_t pgno, u_int idx) in __bt_setcur()
HDbt_split.c50 static int bt_preserve(BTREE *, pgno_t);
238 pgno_t pgno; in __bt_split()
339 pgno_t npg; in bt_page()
437 pgno_t lnpg, rnpg; in bt_root()
549 pgno_t pgno; in bt_broot()
767 bt_preserve(BTREE *t, pgno_t pg) in bt_preserve()
HDbt_page.c81 __bt_new(BTREE *t, pgno_t *npg) in __bt_new()
HDbt_open.c97 pgno_t ncache; in __bt_open()
350 pgno_t npg; in nroot()
HDbt_search.c67 pgno_t pg; in __bt_search()
HDbt_delete.c145 pgno_t pgno; in __bt_stkacq()
/freebsd-14-stable/lib/libc/db/mpool/
HDmpool.c53 static BKT *mpool_look(MPOOL *, pgno_t);
62 mpool_open(void *key, int fd, pgno_t pagesize, pgno_t maxcache) in mpool_open()
99 mpool_filter(MPOOL *mp, void (*pgin) (void *, pgno_t, void *), in mpool_filter() argument
100 void (*pgout) (void *, pgno_t, void *), void *pgcookie) in mpool_filter()
112 mpool_new(MPOOL *mp, pgno_t *pgnoaddr, u_int flags) in mpool_new()
177 mpool_get(MPOOL *mp, pgno_t pgno, in mpool_get()
427 mpool_look(MPOOL *mp, pgno_t pgno) in mpool_look()
HDmpool-compat.c32 void *__mpool_new__44bsd(MPOOL *, pgno_t *);
35 __mpool_new__44bsd(MPOOL *mp, pgno_t *pgnoaddr) in __mpool_new__44bsd()
/freebsd-14-stable/lib/libc/db/recno/
HDrec_put.c193 pgno_t pg; in __rec_iput()
210 *(u_int32_t *)(db + sizeof(pgno_t)) = data->size; in __rec_iput()
HDrec_search.c67 pgno_t pg; in __rec_search()
/freebsd-14-stable/lib/libc/db/test/btree.tests/
HDmain.c711 pgno_t pg;
/freebsd-14-stable/contrib/netbsd-tests/lib/libc/db/
HDh_db.c543 pgno_t pg; in unlinkpg()