Lines Matching refs:index
250 unsigned long index,
255 if (index > ULONG_MAX / 8)
256 fatal("index overflow: %lu\n", index);
258 if (lseek(fd, index * 8, SEEK_SET) < 0) {
275 unsigned long index,
278 return do_u64_read(kpageflags_fd, PROC_KPAGEFLAGS, buf, index, pages);
282 unsigned long index,
285 return do_u64_read(pagemap_fd, "/proc/pid/pagemap", buf, index, pages);
353 static unsigned long index;
356 if (flags == flags0 && offset == index + count &&
366 index, count, page_flag_name(flags0));
370 index = offset;
569 unsigned long index,
579 pages = kpageflags_read(buf, index, batch);
584 add_page(voffset + i, index + i, buf[i]);
586 index += pages;
592 static void walk_vma(unsigned long index, unsigned long count)
602 pages = pagemap_read(buf, index, batch);
609 walk_pfn(index + i, pfn, 1);
612 index += pages;
617 static void walk_task(unsigned long index, unsigned long count)
619 const unsigned long end = index + count;
623 while (index < end) {
625 while (pg_end[i] <= index)
631 start = max_t(unsigned long, pg_start[i], index);
632 index = min_t(unsigned long, pg_end[i], end);
634 assert(start < index);
635 walk_vma(start, index - start);