/* Default pager. Copyright 1999-2002 Johan Rydberg, jrydberg@rtmk.org. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include "tm.h" #include "vm-page.h" #include "vm-pager.h" /* Someone is requesting page at OFFSET in object COOKIE, from our PAGER. Since we are providing anonymous regions, just return OK with *PAGEP set to NULL. We do not care about DESIRED_ACCESS and OFFSET. */ static kern_return_t dflt_page_request (struct vm_pager *pager, void *cookie, vm_offset_t offset, vm_prot_t desired_access, struct vm_page **pagep) { *pagep = 0; return KERN_SUCCESS; } /* Pager structure for the default pager. */ struct vm_pager pager_default = { dflt_page_request, 0 };