• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/lib/libc/db/hash/

Lines Matching refs:page

72 #include "page.h"
96 cp = bufp->page; /* Character pointer of p. */
129 * next page; otherwise the invariant that the
130 * data must end on a page with FREESPACE
148 p = (u_int16_t *)bufp->page;
149 cp = bufp->page;
159 * same page as the key ends, FREESPACE is at least one.
177 cp = bufp->page;
187 * Called when bufp's page contains a partial key (index should be 1)
190 * free bufp because the page pointing to it is lost and we can't get rid
206 bp = (u_int16_t *)bufp->page;
215 * If there is freespace left on a FULL_KEY_DATA page, then
216 * the data is short and fits entirely on this page, and this
217 * is the last page.
229 bp = (u_int16_t *)rbufp->page;
233 * If we get here then rbufp points to the last page of the big
235 * empty pointing to the next page after this pair. Can't free it
236 * because we don't have the page pointing to it.
239 /* This is information from the last page of the pair. */
243 /* Now, bp is the first page of the pair. */
244 bp = (u_int16_t *)bufp->page;
246 /* There is an overflow page. */
251 /* This is the last page. */
270 * -1 = get next overflow page
283 bp = (u_int16_t *)bufp->page;
284 p = bufp->page;
298 p = bufp->page;
313 * Given the buffer pointer of the first overflow page of a big pair,
316 * This will set bpp to the buffer header of the last page of the big pair.
317 * It will return the pageno of the overflow page following the last page
329 bp = (u_int16_t *)bufp->page;
334 * This is the last page if: the tag is FULL_KEY_DATA and
336 * is freespace on the page.
346 bp = (u_int16_t *)bufp->page;
357 * Return the data for the key/data pair that begins on this page at this
367 bp = (u_int16_t *)bufp->page;
372 bp = (u_int16_t *)bufp->page;
380 bp = (u_int16_t *)bufp->page;
401 bp = (u_int16_t *)bufp->page;
403 /* The data is all on one page. */
421 hashp->cpage->page)[0]) {
438 memmove(hashp->tmp_buf, (save_p->page) + off, len);
455 p = bufp->page;
476 else if (!((u_int16_t *)hashp->cpage->page)[0]) {
492 memmove(&hashp->tmp_buf[len], (bufp->page) + bp[1], mylen);
521 p = bufp->page;
544 memmove(&hashp->tmp_key[len], (bufp->page) + bp[1], mylen);
556 BUFHEAD *np, /* Pointer to new bucket page */
557 BUFHEAD *big_keyp, /* Pointer to first page containing the big key/data */
597 tp = (u_int16_t *)tmpp->page;
612 * pointer to the last page of the big key_data pair. Make sure that
613 * big_keyp has no following page (2 elements) or create an empty
614 * following page.
620 tp = (u_int16_t *)big_keyp->page;
624 * There may be either one or two offsets on this page. If
625 * there is one, then the overflow page is linked on normally
628 * next overflow page is added.