Lines Matching defs:pages
184 static long do_mincore(unsigned long addr, unsigned long pages, unsigned char *vec)
193 end = min(vma->vm_end, addr + (pages << PAGE_SHIFT));
195 unsigned long pages = DIV_ROUND_UP(end - addr, PAGE_SIZE);
196 memset(vec, 1, pages);
197 return pages;
208 * mincore() returns the memory residency status of the pages in the
216 * contain stale information. Only locked pages are guaranteed to
225 * specify one or more pages which are not currently
233 unsigned long pages;
247 pages = len >> PAGE_SHIFT;
248 pages += (offset_in_page(len)) != 0;
250 if (!access_ok(vec, pages))
258 while (pages) {
264 retval = do_mincore(start, min(pages, PAGE_SIZE), tmp);
273 pages -= retval;