Home
last modified time | relevance | path

Searched refs:BUFHEAD (Results 1 – 7 of 7) sorted by relevance

/dragonfly/lib/libc/db/hash/
HDextern.h33 BUFHEAD *__add_ovflpage(HTAB *, BUFHEAD *);
34 int __addel(HTAB *, BUFHEAD *, const DBT *, const DBT *);
35 int __big_delete(HTAB *, BUFHEAD *);
36 int __big_insert(HTAB *, BUFHEAD *, const DBT *, const DBT *);
37 int __big_keydata(HTAB *, BUFHEAD *, DBT *, DBT *, int);
38 int __big_return(HTAB *, BUFHEAD *, int, DBT *, int);
39 int __big_split(HTAB *, BUFHEAD *, BUFHEAD *, BUFHEAD *,
44 int __delpair(HTAB *, BUFHEAD *, int);
46 int __find_bigpair(HTAB *, BUFHEAD *, int, char *, int);
47 uint16_t __find_last_page(HTAB *, BUFHEAD **);
[all …]
HDhash_buf.c68 static BUFHEAD *newbuf(HTAB *, uint32_t, BUFHEAD *);
99 BUFHEAD *
101 BUFHEAD *prev_bp, /* If prev_bp set, indicates a new overflow page. */ in __get_buf()
104 BUFHEAD *bp; in __get_buf()
138 (BUFHEAD *)((ptrdiff_t)bp | is_disk_mask); in __get_buf()
152 static BUFHEAD *
153 newbuf(HTAB *hashp, uint32_t addr, BUFHEAD *prev_bp) in newbuf()
155 BUFHEAD *bp; /* The buffer we're going to use */ in newbuf()
156 BUFHEAD *xbp; /* Temp pointer */ in newbuf()
157 BUFHEAD *next_xbp; in newbuf()
[all …]
HDhash_bigkey.c70 static int collect_key(HTAB *, BUFHEAD *, int, DBT *, int);
71 static int collect_data(HTAB *, BUFHEAD *, int, int);
83 __big_insert(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) in __big_insert()
193 __big_delete(HTAB *hashp, BUFHEAD *bufp) in __big_delete()
195 BUFHEAD *last_bfp, *rbufp; in __big_delete()
270 __find_bigpair(HTAB *hashp, BUFHEAD *bufp, int ndx, char *key, int size) in __find_bigpair()
317 __find_last_page(HTAB *hashp, BUFHEAD **bpp) in __find_last_page()
319 BUFHEAD *bufp; in __find_last_page()
356 __big_return(HTAB *hashp, BUFHEAD *bufp, int ndx, DBT *val, int set_current) in __big_return()
358 BUFHEAD *save_p; in __big_return()
[all …]
HDhash.h42 typedef struct _bufhead BUFHEAD; typedef
45 BUFHEAD *prev; /* LRU links */
46 BUFHEAD *next; /* LRU links */
47 BUFHEAD *ovfl; /* Overflow page buffer header */
59 typedef BUFHEAD **SEGMENT;
100 BUFHEAD *cpage; /* Current page */
114 BUFHEAD bufhead; /* Header of buffer lru list */
142 #define PTROF(X) ((BUFHEAD *)((ptrdiff_t)(X)&~0x3))
HDpage.h85 BUFHEAD *newp;
86 BUFHEAD *oldp;
87 BUFHEAD *nextp;
HDhash_page.c79 static int ugly_split(HTAB *, uint32_t, BUFHEAD *, BUFHEAD *, int, int);
123 __delpair(HTAB *hashp, BUFHEAD *bufp, int ndx) in __delpair()
182 BUFHEAD *new_bufp, *old_bufp; in __split_page()
276 BUFHEAD *old_bufp, in ugly_split()
277 BUFHEAD *new_bufp, in ugly_split()
281 BUFHEAD *bufp; /* Buffer header for ino */ in ugly_split()
286 BUFHEAD *last_bfp; /* Last buf header OVFL needing to be freed */ in ugly_split()
395 __addel(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) in __addel()
464 BUFHEAD *
465 __add_ovflpage(HTAB *hashp, BUFHEAD *bufp) in __add_ovflpage()
[all …]
HDhash.c569 BUFHEAD *rbufp; in hash_access()
570 BUFHEAD *bufp, *save_bufp; in hash_access()
697 BUFHEAD *bufp; in hash_seq()