Home
last modified time | relevance | path

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

/freebsd-12-stable/include/
Dmpool.h55 pgno_t pgno; /* page number */
67 pgno_t curcache; /* current number of cached pages */
68 pgno_t maxcache; /* max number of cached pages */
69 pgno_t npages; /* number of pages in the file */
73 void (*pgin)(void *, pgno_t, void *);
75 void (*pgout)(void *, pgno_t, void *);
97 MPOOL *mpool_open(void *, int, pgno_t, pgno_t);
98 void mpool_filter(MPOOL *, void (*)(void *, pgno_t, void *),
99 void (*)(void *, pgno_t, void *), void *);
100 void *mpool_new(MPOOL *, pgno_t *, unsigned int);
[all …]
Ddb.h48 typedef uint32_t pgno_t; typedef
/freebsd-12-stable/lib/libc/db/btree/
Dbtree.h67 pgno_t pgno; /* this page's page number */
68 pgno_t prevpg; /* left sibling */
69 pgno_t nextpg; /* right sibling */
87 (sizeof(pgno_t) + sizeof(pgno_t) + sizeof(pgno_t) + \
107 #define LALIGN(n) (((n) + sizeof(pgno_t) - 1) & ~(sizeof(pgno_t) - 1))
108 #define NOVFLSIZE (sizeof(pgno_t) + sizeof(u_int32_t))
121 pgno_t pgno; /* page number stored on */
134 LALIGN(sizeof(u_int32_t) + sizeof(pgno_t) + sizeof(u_char) + (len))
140 *(pgno_t *)p = pgno; \
141 p += sizeof(pgno_t); \
[all …]
Dextern.h45 PAGE *__bt_new(BTREE *, pgno_t *);
46 void __bt_pgin(void *, pgno_t, void *);
47 void __bt_pgout(void *, pgno_t, void *);
48 int __bt_push(BTREE *, pgno_t, int);
53 void __bt_setcur(BTREE *, pgno_t, u_int);
60 int __ovfl_put(BTREE *, const DBT *, pgno_t *);
63 void __bt_dnpage(DB *, pgno_t);
Dbt_conv.c61 __bt_pgin(void *t, pgno_t pg, void *pp) in __bt_pgin()
91 p += sizeof(pgno_t); in __bt_pgin()
95 p += sizeof(pgno_t); in __bt_pgin()
112 p += sizeof(pgno_t); in __bt_pgin()
118 p += sizeof(pgno_t); in __bt_pgin()
126 __bt_pgout(void *t, pgno_t pg, void *pp) in __bt_pgout()
148 p += sizeof(pgno_t); in __bt_pgout()
152 p += sizeof(pgno_t); in __bt_pgout()
169 p += sizeof(pgno_t); in __bt_pgout()
175 p += sizeof(pgno_t); in __bt_pgout()
Dbt_overflow.c83 pgno_t pg; in __ovfl_get()
87 memmove(&pg, p, sizeof(pgno_t)); in __ovfl_get()
88 memmove(&sz, (char *)p + sizeof(pgno_t), sizeof(u_int32_t)); in __ovfl_get()
134 __ovfl_put(BTREE *t, const DBT *dbt, pgno_t *pg) in __ovfl_put()
138 pgno_t npg; in __ovfl_put()
188 pgno_t pg; in __ovfl_delete()
192 memmove(&pg, p, sizeof(pgno_t)); in __ovfl_delete()
193 memmove(&sz, (char *)p + sizeof(pgno_t), sizeof(u_int32_t)); in __ovfl_delete()
Dbt_debug.c62 pgno_t i; in __bt_dump()
133 __bt_dnpage(DB *dbp, pgno_t pgno) in __bt_dnpage()
206 *(pgno_t *)bl->bytes, in __bt_dpage()
207 *(u_int32_t *)(bl->bytes + sizeof(pgno_t))); in __bt_dpage()
214 *(pgno_t *)(bl->bytes + bl->ksize), in __bt_dpage()
216 sizeof(pgno_t))); in __bt_dpage()
226 *(pgno_t *)rl->bytes, in __bt_dpage()
227 *(u_int32_t *)(rl->bytes + sizeof(pgno_t))); in __bt_dpage()
252 pgno_t i, pcont, pinternal, pleaf; in __bt_stat()
Dbt_put.c74 pgno_t pg; in __bt_put()
128 memmove(kb, &pg, sizeof(pgno_t)); in __bt_put()
130 memmove(kb + sizeof(pgno_t), in __bt_put()
140 memmove(db, &pg, sizeof(pgno_t)); in __bt_put()
142 memmove(db + sizeof(pgno_t), in __bt_put()
Dbt_seq.c152 pgno_t pg; in __bt_seqset()
238 pgno_t pg; in __bt_seqadv()
336 pgno_t pg; in __bt_first()
429 __bt_setcur(BTREE *t, pgno_t pgno, u_int idx) in __bt_setcur()
Dbt_split.c53 static int bt_preserve(BTREE *, pgno_t);
241 pgno_t pgno; in __bt_split()
342 pgno_t npg; in bt_page()
440 pgno_t lnpg, rnpg; in bt_root()
552 pgno_t pgno; in bt_broot()
770 bt_preserve(BTREE *t, pgno_t pg) in bt_preserve()
Dbt_page.c84 __bt_new(BTREE *t, pgno_t *npg) in __bt_new()
Dbt_open.c100 pgno_t ncache; in __bt_open()
353 pgno_t npg; in nroot()
Dbt_search.c70 pgno_t pg; in __bt_search()
Dbt_delete.c148 pgno_t pgno; in __bt_stkacq()
/freebsd-12-stable/lib/libc/db/mpool/
Dmpool.c56 static BKT *mpool_look(MPOOL *, pgno_t);
65 mpool_open(void *key, int fd, pgno_t pagesize, pgno_t maxcache) in mpool_open()
102 mpool_filter(MPOOL *mp, void (*pgin) (void *, pgno_t, void *), in mpool_filter() argument
103 void (*pgout) (void *, pgno_t, void *), void *pgcookie) in mpool_filter()
115 mpool_new(MPOOL *mp, pgno_t *pgnoaddr, u_int flags) in mpool_new()
180 mpool_get(MPOOL *mp, pgno_t pgno, in mpool_get()
430 mpool_look(MPOOL *mp, pgno_t pgno) in mpool_look()
Dmpool-compat.c35 void *__mpool_new__44bsd(MPOOL *, pgno_t *);
38 __mpool_new__44bsd(MPOOL *mp, pgno_t *pgnoaddr) in __mpool_new__44bsd()
/freebsd-12-stable/lib/libc/db/recno/
Drec_put.c196 pgno_t pg; in __rec_iput()
213 *(u_int32_t *)(db + sizeof(pgno_t)) = data->size; in __rec_iput()
Drec_search.c70 pgno_t pg; in __rec_search()
/freebsd-12-stable/lib/libc/db/test/btree.tests/
Dmain.c714 pgno_t pg;
/freebsd-12-stable/contrib/netbsd-tests/lib/libc/db/
Dh_db.c543 pgno_t pg; in unlinkpg()