26 |
#include "vm-object.h" |
#include "vm-object.h" |
27 |
|
|
28 |
/* Map OBJECT at into the address space of TASK. If ANYWHERE_P is |
/* Map OBJECT at into the address space of TASK. If ANYWHERE_P is |
29 |
false we try to map the object at *OFFSETP, otherwise the kernel |
false we try to map the object at *ADDRESSP, otherwise the kernel |
30 |
selects the location in the address space. */ |
selects the location in the address space. */ |
31 |
extern kern_return_t vm_map (struct task *task, struct vm_object *object, |
extern kern_return_t vm_map (struct task *task, vm_offset_t *addressp, |
32 |
vm_offset_t *offsetp, vm_size_t size, |
vm_size_t size, bool anywhere_p, |
33 |
bool anywhere_p, vm_prot_t protection, |
struct ipc_port *memory_object, |
34 |
|
vm_offset_t offset, bool copy_p, |
35 |
|
vm_prot_t protection, |
36 |
|
vm_prot_t max_protection, |
37 |
vm_inherit_t inherit); |
vm_inherit_t inherit); |
38 |
|
|
39 |
/* Allocate SIZE bytes in the address space of TASK. If ANYWHERE_P is |
/* Allocate SIZE bytes in the address space of TASK. If ANYWHERE_P is |