Home | History | Annotate | Download | only in util

Lines Matching defs:page

206 		die("did not read header page");
212 * The size field in the page is of type long,
287 char *page;
307 if (!cpu_data[cpu].page)
312 free(cpu_data[cpu].page);
313 cpu_data[cpu].page = NULL;
325 ret = read(input_fd, cpu_data[cpu].page, page_size);
327 die("failed to read page");
335 munmap(cpu_data[cpu].page, page_size);
336 cpu_data[cpu].page = NULL;
343 cpu_data[cpu].page = mmap(NULL, page_size, PROT_READ, MAP_PRIVATE,
345 if (cpu_data[cpu].page == MAP_FAILED)
368 return (unsigned long)ptr - (unsigned long)cpu_data[cpu].page;
374 void *page = cpu_data[cpu].page;
376 void *ptr = page + idx;
386 if (!page)
390 /* FIXME: handle header page */
407 ptr = cpu_data[cpu].page + header_page_data_offset;
427 die("error, hit unexpected end of page");