Lines Matching defs:pages
372 * returned if there are no more vm resources (e.g. pages, swap). The len
393 pgcnt_t np = 0; /* number of pages in the resource */
397 pgcnt_t pages = 0;
430 pages = btop(SEGKP_MAPLEN(len, flags));
431 if (page_resv(pages, kmflag) == 0) {
437 atomic_add_long(&anon_segkp_pages_locked, pages);
464 -pages);
465 page_unresv(pages);
542 panic("segkp_get: no pages");
693 * associated pages.
748 pgcnt_t pages = btop(SEGKP_MAPLEN(kpd->kp_len, kpd->kp_flags));
750 atomic_add_long(&anon_segkp_pages_locked, -pages);
751 page_unresv(pages);
1106 pgcnt_t pages = btop(len);
1108 atomic_add_long(&anon_segkp_pages_locked, pages);
1109 (void) page_resv(pages, KM_SLEEP);
1113 * Loop through the pages in the given range.
1169 * any dirty pages should be written to disk.
1195 * Loop through the pages in the given range. It is assumed
1261 pgcnt_t pages = btopr(len);
1263 atomic_add_long(&anon_segkp_pages_locked, -pages);
1264 page_unresv(pages);
1364 * Dump out all the active segkp pages
1431 * During memory delete, turn off caches so that pages are not held.
1432 * A better solution may be to unlock the pages while they are