1 |
/* ??? ports |
/* ??? ports |
2 |
Copyright 1999, 2000, 2001 Johan Rydberg, jrydberg@opencores.org. |
Copyright 1999, 2000, 2001, 2002 Johan Rydberg, jrydberg@rtmk.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 |
111 |
return KERN_SUCCESS; |
return KERN_SUCCESS; |
112 |
} |
} |
113 |
|
|
114 |
|
/* Inserts into TASK the caller's right for PORT. RIGHT_NAME is name in |
115 |
|
TASK's IPC object. RIGHT_TYPE specifies right type. */ |
116 |
|
kern_return_t |
117 |
|
port_insert_right (struct task *task, struct ipc_port *port, |
118 |
|
rtmk_port_name_t right_name, rtmk_port_type_t right_type) |
119 |
|
{ |
120 |
|
/* ??? lock object. */ |
121 |
|
return |
122 |
|
ipc_object_insert (task->ipc_object, port, right_type, right_name); |
123 |
|
/* ??? unlock object. */ |
124 |
|
} |
125 |
|
|
126 |
/* Create a new kernel port. This port have not message queue since |
/* Create a new kernel port. This port have not message queue since |
127 |
all messages sent to it will be demuxed by the kernel demuxer. */ |
all messages sent to it will be demuxed by the kernel demuxer. */ |
128 |
|
|