1 |
/* Task. |
/* Task. |
2 |
Copyright 1999, 2000, 2001 Johan Rydberg, jrydberg@opencores.org. |
Copyright 1999, 2000, 2001, 2002 Johan Rydberg, jrydberg@opencores.org. |
3 |
|
|
4 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
5 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
80 |
} |
} |
81 |
|
|
82 |
/* Terminate TASK and release all resources held by it. */ |
/* Terminate TASK and release all resources held by it. */ |
|
|
|
83 |
kern_return_t |
kern_return_t |
84 |
task_terminate (struct task *task) |
task_terminate (struct task *task) |
85 |
{ |
{ |
113 |
return task->task_right_name; |
return task->task_right_name; |
114 |
} |
} |
115 |
|
|
116 |
|
/* Set special port in TASK to PORT at SLOT in special port array. */ |
117 |
|
kern_return_t |
118 |
|
task_special_port_set (struct task *task, int slot, struct ipc_port *port) |
119 |
|
{ |
120 |
|
task->special_ports [slot] = port; |
121 |
|
return KERN_SUCCESS; |
122 |
|
} |
123 |
|
|
124 |
|
|
125 |
|
/* Get send rights to port SLOT in TASK's special port set. |
126 |
|
Right is returned in PORTP. */ |
127 |
|
kern_return_t |
128 |
|
task_special_port_get (struct task *task, int slot, struct ipc_port **portp) |
129 |
|
{ |
130 |
|
*portp = task->special_ports [slot]; |
131 |
|
return KERN_SUCCESS; |
132 |
|
} |