vm_resident.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Resident memory management module functions.
  3. * Copyright (C) 2008 Free Software Foundation, Inc.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2, or (at your option)
  8. * any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  18. *
  19. * Author: Barry deFreese.
  20. */
  21. /*
  22. * Resident memory management module functions.
  23. *
  24. */
  25. #ifndef _VM_RESIDENT_H_
  26. #define _VM_RESIDENT_H_
  27. #include <mach/std_types.h>
  28. /*
  29. * vm_page_replace:
  30. *
  31. * Exactly like vm_page_insert, except that we first
  32. * remove any existing page at the given offset in object
  33. * and we don't do deactivate-behind.
  34. *
  35. * The object and page must be locked.
  36. */
  37. extern void vm_page_replace (
  38. vm_page_t mem,
  39. vm_object_t object,
  40. vm_offset_t offset);
  41. #endif /* _VM_RESIDENT_H_ */