/* 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. */ #ifndef __vm_syscall_h #include #include #include #include "task.h" #include "vm-object.h" /* Map OBJECT at into the address space of TASK. If ANYWHERE_P is false we try to map the object at *OFFSETP, otherwise the kernel selects the location in the address space. */ extern kern_return_t vm_map (struct task *task, struct vm_object *object, vm_offset_t *offsetp, vm_size_t size, bool anywhere_p, vm_prot_t protection, vm_inherit_t inherit); /* Allocate SIZE bytes in the address space of TASK. If ANYWHERE_P is false, enter new object at *OFFSETP, otherwise use suitable location. */ extern kern_return_t vm_allocate (struct task *task, vm_size_t size, vm_offset_t *offsetp, bool anywhere_p); #endif /* vm-syscall.h */