74 |
extern kern_return_t __task_terminate __P ((rtmk_port_t task)); |
extern kern_return_t __task_terminate __P ((rtmk_port_t task)); |
75 |
|
|
76 |
/* Set special port in TASK to PORT at SLOT in special port array. */ |
/* Set special port in TASK to PORT at SLOT in special port array. */ |
77 |
extern kern_return_t task_special_port_set (rtmk_port_t task, int slot, |
extern kern_return_t task_special_port_set __P ((rtmk_port_t task, int slot, |
78 |
rtmk_port_t port); |
rtmk_port_t port)); |
79 |
extern kern_return_t __task_special_port_set (rtmk_port_t task, int slot, |
extern kern_return_t __task_special_port_set __P ((rtmk_port_t task, int slot, |
80 |
rtmk_port_t port); |
rtmk_port_t port)); |
81 |
|
|
82 |
/* Get send rights to port SLOT in TASK's special port set. |
/* Get send rights to port SLOT in TASK's special port set. |
83 |
Right is returned in PORTP. */ |
Right is returned in PORTP. */ |
84 |
extern kern_return_t task_special_port_get (rtmk_port_t task, int slot, |
extern kern_return_t task_special_port_get __P ((rtmk_port_t task, int slot, |
85 |
rtmk_port_t *portp); |
rtmk_port_t *portp)); |
86 |
extern kern_return_t __task_special_port_get (rtmk_port_t task, int slot, |
extern kern_return_t __task_special_port_get __P ((rtmk_port_t task, int slot, |
87 |
rtmk_port_t *portp); |
rtmk_port_t *portp)); |
88 |
|
|
89 |
|
/* Return send rights to threads that belong to TASK. Send rights |
90 |
|
are returned in THREADSP. */ |
91 |
|
extern kern_return_t task_threads __P ((rtmk_port_t task, |
92 |
|
rtmk_port_t **threadp, |
93 |
|
int *countp)); |
94 |
|
extern kern_return_t __task_threads __P ((rtmk_port_t task, |
95 |
|
rtmk_port_t **threadp, |
96 |
|
int *countp)); |
97 |
|
|
98 |
|
|
99 |
/* Threads. */ |
/* Threads. */ |
252 |
vm_offset_t *offsetp, int anywhere_p)); |
vm_offset_t *offsetp, int anywhere_p)); |
253 |
|
|
254 |
/* Deallocate memory object at OFFSET within TASK's address space. */ |
/* Deallocate memory object at OFFSET within TASK's address space. */ |
255 |
extern kern_return_t vm_deallocate __P ((rtmk_port_t task, vm_offset_t offset)); |
extern kern_return_t vm_deallocate __P ((rtmk_port_t task, |
256 |
extern kern_return_t __vm_deallocate __P ((rtmk_port_t task, vm_offset_t offset)); |
vm_offset_t offset, |
257 |
|
vm_size_t size)); |
258 |
|
extern kern_return_t __vm_deallocate __P ((rtmk_port_t task, |
259 |
|
vm_offset_t offset, |
260 |
|
vm_size_t size)); |
261 |
|
|
262 |
|
/* Sets the protection for address region [OFFSET, OFFSET+SIZE) |
263 |
|
in TASK to PROTECTION. If SETMAX_P is specified, the maximum |
264 |
|
protection is to be set; otherwise, only the current protection |
265 |
|
is affected. */ |
266 |
|
extern kern_return_t vm_protect __P ((rtmk_port_t task, vm_offset_t offset, |
267 |
|
vm_size_t size, vm_prot_t protection, |
268 |
|
int setmax_p)); |
269 |
|
extern kern_return_t __vm_protect __P ((rtmk_port_t task, vm_offset_t offset, |
270 |
|
vm_size_t size, vm_prot_t protection, |
271 |
|
int setmax_p)); |
272 |
|
|
273 |
/* Map SIZE bytes of OBJECT at *OFFSETP in TASKs address space. |
/* Map SIZE bytes of OBJECT at *OFFSETP in TASKs address space. |
274 |
If ANYWHERE_P is false, try fixed offset specified by |
If ANYWHERE_P is false, try fixed offset specified by |
285 |
/* Write into TASKs address space at offset DST_OFFSET, from current |
/* Write into TASKs address space at offset DST_OFFSET, from current |
286 |
tasks address space at SRC_OFFSET. Copy LENGTH bytes. */ |
tasks address space at SRC_OFFSET. Copy LENGTH bytes. */ |
287 |
extern kern_return_t vm_write __P ((rtmk_port_t task, vm_offset_t dst_offset, |
extern kern_return_t vm_write __P ((rtmk_port_t task, vm_offset_t dst_offset, |
288 |
vm_offset_t src_offset, vm_size_t length)); |
vm_offset_t src_offset, |
289 |
|
vm_size_t length)); |
290 |
extern kern_return_t __vm_write __P ((rtmk_port_t task, vm_offset_t dst_offset, |
extern kern_return_t __vm_write __P ((rtmk_port_t task, vm_offset_t dst_offset, |
291 |
vm_offset_t src_offset, vm_size_t length)); |
vm_offset_t src_offset, |
292 |
|
vm_size_t length)); |
293 |
|
|
294 |
|
|
295 |
/* Host. */ |
/* Host. */ |