source: mainline/uspace/lib/c/generic/ipc.c@ d7978525

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since d7978525 was d7978525, checked in by Jakub Jermar <jakub@…>, 13 years ago

Implement ipc_*_finalize() functionality directly in async framework.

  • Remove ipc_*_finalize() as these interfaces do not make much sense only on their own.
  • Property mode set to 100644
File size: 15.6 KB
RevLine 
[b419162]1/*
[df4ed85]2 * Copyright (c) 2006 Ondrej Palkovsky
[b419162]3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * - Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * - The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
[b2951e2]27 */
28
29/** @addtogroup libc
30 * @{
31 * @}
32 */
33
[fadd381]34/** @addtogroup libcipc IPC
[b2951e2]35 * @brief HelenOS uspace IPC
36 * @{
37 * @ingroup libc
38 */
39/** @file
[6b10dab]40 */
[b419162]41
[7ee6aff]42#include <ipc/ipc.h>
[b419162]43#include <libc.h>
[936351c1]44#include <malloc.h>
45#include <errno.h>
[d9c8c81]46#include <adt/list.h>
[35509652]47#include <futex.h>
[bc1f1c2]48#include <fibril.h>
[633bcc6]49#include <macros.h>
[b419162]50
[36c9234]51/**
[10477601]52 * Structures of this type are used for keeping track
53 * of sent asynchronous calls and queing unsent calls.
[936351c1]54 */
55typedef struct {
56 link_t list;
[10477601]57
[936351c1]58 ipc_async_callback_t callback;
59 void *private;
[10477601]60
[936351c1]61 union {
62 ipc_callid_t callid;
63 struct {
[4c61e60]64 ipc_call_t data;
[936351c1]65 int phoneid;
66 } msg;
[8b243f2]67 } u;
[10477601]68
69 /** Fibril waiting for sending this call. */
70 fid_t fid;
[936351c1]71} async_call_t;
72
73LIST_INITIALIZE(dispatched_calls);
[fc42b28]74
[8b243f2]75/** List of asynchronous calls that were not accepted by kernel.
76 *
[10477601]77 * Protected by async_futex, because if the call is not accepted
78 * by the kernel, the async framework is used automatically.
79 *
[fc42b28]80 */
[8b243f2]81LIST_INITIALIZE(queued_calls);
[936351c1]82
[80649a91]83static atomic_t ipc_futex = FUTEX_INITIALIZER;
[35509652]84
[10477601]85/** Send asynchronous message via syscall.
[8b243f2]86 *
[228e490]87 * @param phoneid Phone handle for the call.
88 * @param data Call data with the request.
89 *
90 * @return Hash of the call or an error code.
[8b243f2]91 *
92 */
[10477601]93static ipc_callid_t ipc_call_async_internal(int phoneid, ipc_call_t *data)
[936351c1]94{
[3209923]95 return __SYSCALL2(SYS_IPC_CALL_ASYNC_SLOW, phoneid, (sysarg_t) data);
[936351c1]96}
97
[10477601]98/** Prolog for ipc_call_async_*() functions.
99 *
100 * @param private Argument for the answer/error callback.
101 * @param callback Answer/error callback.
[8b243f2]102 *
[10477601]103 * @return New, partially initialized async_call structure or NULL.
[8b243f2]104 *
105 */
106static inline async_call_t *ipc_prepare_async(void *private,
107 ipc_async_callback_t callback)
[b419162]108{
[10477601]109 async_call_t *call =
110 (async_call_t *) malloc(sizeof(async_call_t));
[936351c1]111 if (!call) {
[a784a96]112 if (callback)
113 callback(private, ENOMEM, NULL);
[10477601]114
[c1d2c9d]115 return NULL;
[936351c1]116 }
[10477601]117
[fc42b28]118 call->callback = callback;
119 call->private = private;
[10477601]120
[c1d2c9d]121 return call;
122}
123
[10477601]124/** Epilog for ipc_call_async_*() functions.
125 *
126 * @param callid Value returned by the SYS_IPC_CALL_ASYNC_* syscall.
127 * @param phoneid Phone handle through which the call was made.
128 * @param call Structure returned by ipc_prepare_async().
129 * @param can_preempt If true, the current fibril can be preempted
130 * in this call.
[8b243f2]131 *
132 */
133static inline void ipc_finish_async(ipc_callid_t callid, int phoneid,
[10477601]134 async_call_t *call, bool can_preempt)
[c1d2c9d]135{
[10477601]136 if (!call) {
137 /* Nothing to do regardless if failed or not */
[d8b42fb2]138 futex_up(&ipc_futex);
139 return;
140 }
[10477601]141
[b78d0bd]142 if (callid == (ipc_callid_t) IPC_CALLRET_FATAL) {
[fc42b28]143 futex_up(&ipc_futex);
[10477601]144
[06502f7d]145 /* Call asynchronous handler with error code */
[c1d2c9d]146 if (call->callback)
147 call->callback(call->private, ENOENT, NULL);
[10477601]148
[936351c1]149 free(call);
[06502f7d]150 return;
151 }
[10477601]152
[b78d0bd]153 if (callid == (ipc_callid_t) IPC_CALLRET_TEMPORARY) {
[fc42b28]154 futex_up(&ipc_futex);
[10477601]155
[936351c1]156 call->u.msg.phoneid = phoneid;
[b1f51f0]157
[fc42b28]158 futex_down(&async_futex);
[936351c1]159 list_append(&call->list, &queued_calls);
[10477601]160
[b1f51f0]161 if (can_preempt) {
[bc1f1c2]162 call->fid = fibril_get_id();
[116d3f6f]163 fibril_switch(FIBRIL_TO_MANAGER);
[b1f51f0]164 /* Async futex unlocked by previous call */
165 } else {
[bc1f1c2]166 call->fid = 0;
[b1f51f0]167 futex_up(&async_futex);
168 }
[10477601]169
[06502f7d]170 return;
171 }
[10477601]172
[936351c1]173 call->u.callid = callid;
[10477601]174
[8b243f2]175 /* Add call to the list of dispatched calls */
[936351c1]176 list_append(&call->list, &dispatched_calls);
[35509652]177 futex_up(&ipc_futex);
[c1d2c9d]178}
179
[10477601]180/** Fast asynchronous call.
[8b243f2]181 *
[3209923]182 * This function can only handle four arguments of payload. It is, however,
183 * faster than the more generic ipc_call_async_slow().
[8b243f2]184 *
185 * Note that this function is a void function.
[10477601]186 *
187 * During normal operation, answering this call will trigger the callback.
188 * In case of fatal error, the callback handler is called with the proper
189 * error code. If the call cannot be temporarily made, it is queued.
[c1d2c9d]190 *
[228e490]191 * @param phoneid Phone handle for the call.
192 * @param imethod Requested interface and method.
193 * @param arg1 Service-defined payload argument.
194 * @param arg2 Service-defined payload argument.
195 * @param arg3 Service-defined payload argument.
196 * @param arg4 Service-defined payload argument.
197 * @param private Argument to be passed to the answer/error callback.
198 * @param callback Answer or error callback.
[10477601]199 * @param can_preempt If true, the current fibril will be preempted in
[228e490]200 * case the kernel temporarily refuses to accept more
201 * asynchronous calls.
202 *
[c1d2c9d]203 */
[228e490]204void ipc_call_async_fast(int phoneid, sysarg_t imethod, sysarg_t arg1,
[96b02eb9]205 sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, void *private,
[10477601]206 ipc_async_callback_t callback, bool can_preempt)
[c1d2c9d]207{
[d8b42fb2]208 async_call_t *call = NULL;
[228e490]209
[d8b42fb2]210 if (callback) {
211 call = ipc_prepare_async(private, callback);
212 if (!call)
213 return;
214 }
[228e490]215
[8b243f2]216 /*
[10477601]217 * We need to make sure that we get callid
218 * before another thread accesses the queue again.
[8b243f2]219 */
[10477601]220
[c1d2c9d]221 futex_down(&ipc_futex);
[228e490]222 ipc_callid_t callid = __SYSCALL6(SYS_IPC_CALL_ASYNC_FAST, phoneid,
223 imethod, arg1, arg2, arg3, arg4);
224
[b78d0bd]225 if (callid == (ipc_callid_t) IPC_CALLRET_TEMPORARY) {
[d8b42fb2]226 if (!call) {
227 call = ipc_prepare_async(private, callback);
228 if (!call)
229 return;
230 }
[10477601]231
[228e490]232 IPC_SET_IMETHOD(call->u.msg.data, imethod);
[c1d2c9d]233 IPC_SET_ARG1(call->u.msg.data, arg1);
234 IPC_SET_ARG2(call->u.msg.data, arg2);
[3209923]235 IPC_SET_ARG3(call->u.msg.data, arg3);
236 IPC_SET_ARG4(call->u.msg.data, arg4);
[10477601]237
[8498915]238 /*
239 * To achieve deterministic behavior, we always zero out the
240 * arguments that are beyond the limits of the fast version.
241 */
[10477601]242
[8498915]243 IPC_SET_ARG5(call->u.msg.data, 0);
[c1d2c9d]244 }
[10477601]245
[b1f51f0]246 ipc_finish_async(callid, phoneid, call, can_preempt);
[c1d2c9d]247}
248
[10477601]249/** Asynchronous call transmitting the entire payload.
[8b243f2]250 *
251 * Note that this function is a void function.
[10477601]252 *
253 * During normal operation, answering this call will trigger the callback.
254 * In case of fatal error, the callback handler is called with the proper
255 * error code. If the call cannot be temporarily made, it is queued.
[8b243f2]256 *
[228e490]257 * @param phoneid Phone handle for the call.
258 * @param imethod Requested interface and method.
259 * @param arg1 Service-defined payload argument.
260 * @param arg2 Service-defined payload argument.
261 * @param arg3 Service-defined payload argument.
262 * @param arg4 Service-defined payload argument.
263 * @param arg5 Service-defined payload argument.
264 * @param private Argument to be passed to the answer/error callback.
265 * @param callback Answer or error callback.
[10477601]266 * @param can_preempt If true, the current fibril will be preempted in
[228e490]267 * case the kernel temporarily refuses to accept more
268 * asynchronous calls.
[c1d2c9d]269 *
270 */
[228e490]271void ipc_call_async_slow(int phoneid, sysarg_t imethod, sysarg_t arg1,
[96b02eb9]272 sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t arg5, void *private,
[10477601]273 ipc_async_callback_t callback, bool can_preempt)
[c1d2c9d]274{
[10477601]275 async_call_t *call = ipc_prepare_async(private, callback);
[c1d2c9d]276 if (!call)
277 return;
[10477601]278
[228e490]279 IPC_SET_IMETHOD(call->u.msg.data, imethod);
[c1d2c9d]280 IPC_SET_ARG1(call->u.msg.data, arg1);
281 IPC_SET_ARG2(call->u.msg.data, arg2);
282 IPC_SET_ARG3(call->u.msg.data, arg3);
[3209923]283 IPC_SET_ARG4(call->u.msg.data, arg4);
284 IPC_SET_ARG5(call->u.msg.data, arg5);
[10477601]285
[8b243f2]286 /*
[10477601]287 * We need to make sure that we get callid
288 * before another threadaccesses the queue again.
[8b243f2]289 */
[10477601]290
[c1d2c9d]291 futex_down(&ipc_futex);
[10477601]292 ipc_callid_t callid =
293 ipc_call_async_internal(phoneid, &call->u.msg.data);
294
[b1f51f0]295 ipc_finish_async(callid, phoneid, call, can_preempt);
[b419162]296}
297
[10477601]298/** Answer received call (fast version).
[250717cc]299 *
[b74959bd]300 * The fast answer makes use of passing retval and first four arguments in
301 * registers. If you need to return more, use the ipc_answer_slow() instead.
[250717cc]302 *
[10477601]303 * @param callid Hash of the call being answered.
304 * @param retval Return value.
305 * @param arg1 First return argument.
306 * @param arg2 Second return argument.
307 * @param arg3 Third return argument.
308 * @param arg4 Fourth return argument.
309 *
310 * @return Zero on success.
311 * @return Value from @ref errno.h on failure.
[250717cc]312 *
313 */
[96b02eb9]314sysarg_t ipc_answer_fast(ipc_callid_t callid, sysarg_t retval, sysarg_t arg1,
315 sysarg_t arg2, sysarg_t arg3, sysarg_t arg4)
[b419162]316{
[b74959bd]317 return __SYSCALL6(SYS_IPC_ANSWER_FAST, callid, retval, arg1, arg2, arg3,
318 arg4);
[b419162]319}
[06502f7d]320
[10477601]321/** Answer received call (entire payload).
322 *
323 * @param callid Hash of the call being answered.
324 * @param retval Return value.
325 * @param arg1 First return argument.
326 * @param arg2 Second return argument.
327 * @param arg3 Third return argument.
328 * @param arg4 Fourth return argument.
329 * @param arg5 Fifth return argument.
[250717cc]330 *
[10477601]331 * @return Zero on success.
332 * @return Value from @ref errno.h on failure.
[250717cc]333 *
334 */
[96b02eb9]335sysarg_t ipc_answer_slow(ipc_callid_t callid, sysarg_t retval, sysarg_t arg1,
336 sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t arg5)
[250717cc]337{
[b74959bd]338 ipc_call_t data;
[10477601]339
[b74959bd]340 IPC_SET_RETVAL(data, retval);
341 IPC_SET_ARG1(data, arg1);
342 IPC_SET_ARG2(data, arg2);
343 IPC_SET_ARG3(data, arg3);
344 IPC_SET_ARG4(data, arg4);
345 IPC_SET_ARG5(data, arg5);
[10477601]346
[b74959bd]347 return __SYSCALL2(SYS_IPC_ANSWER_SLOW, callid, (sysarg_t) &data);
[250717cc]348}
349
[10477601]350/** Try to dispatch queued calls from the async queue.
351 *
352 */
353static void dispatch_queued_calls(void)
[936351c1]354{
[8b243f2]355 /** @todo
[10477601]356 * Integrate intelligently ipc_futex so that it is locked during
357 * ipc_call_async_*() until it is added to dispatched_calls.
[fc42b28]358 */
[10477601]359
[fc42b28]360 futex_down(&async_futex);
[10477601]361
[936351c1]362 while (!list_empty(&queued_calls)) {
[10477601]363 async_call_t *call =
[b72efe8]364 list_get_instance(list_first(&queued_calls), async_call_t, list);
[10477601]365 ipc_callid_t callid =
366 ipc_call_async_internal(call->u.msg.phoneid, &call->u.msg.data);
367
368 if (callid == (ipc_callid_t) IPC_CALLRET_TEMPORARY)
[936351c1]369 break;
[10477601]370
[936351c1]371 list_remove(&call->list);
[10477601]372
[fc42b28]373 futex_up(&async_futex);
[10477601]374
[bc1f1c2]375 if (call->fid)
376 fibril_add_ready(call->fid);
[fc42b28]377
[b78d0bd]378 if (callid == (ipc_callid_t) IPC_CALLRET_FATAL) {
[a784a96]379 if (call->callback)
380 call->callback(call->private, ENOENT, NULL);
[10477601]381
[936351c1]382 free(call);
383 } else {
384 call->u.callid = callid;
[10477601]385
[fc42b28]386 futex_down(&ipc_futex);
[936351c1]387 list_append(&call->list, &dispatched_calls);
[fc42b28]388 futex_up(&ipc_futex);
[936351c1]389 }
[10477601]390
[fc42b28]391 futex_down(&async_futex);
[936351c1]392 }
[10477601]393
[fc42b28]394 futex_up(&async_futex);
[936351c1]395}
396
[10477601]397/** Handle received answer.
[936351c1]398 *
[8b243f2]399 * Find the hash of the answer and call the answer callback.
[936351c1]400 *
[10477601]401 * The answer has the same hash as the request OR'ed with
402 * the IPC_CALLID_ANSWERED bit.
403 *
404 * @todo Use hash table.
405 *
406 * @param callid Hash of the received answer.
407 * @param data Call data of the answer.
[8b243f2]408 *
[936351c1]409 */
[4c61e60]410static void handle_answer(ipc_callid_t callid, ipc_call_t *data)
[936351c1]411{
412 callid &= ~IPC_CALLID_ANSWERED;
413
[35509652]414 futex_down(&ipc_futex);
[10477601]415
416 link_t *item;
[b72efe8]417 for (item = dispatched_calls.head.next; item != &dispatched_calls.head;
[8b243f2]418 item = item->next) {
[10477601]419 async_call_t *call =
420 list_get_instance(item, async_call_t, list);
421
[936351c1]422 if (call->u.callid == callid) {
423 list_remove(&call->list);
[10477601]424
[35509652]425 futex_up(&ipc_futex);
[10477601]426
[a784a96]427 if (call->callback)
[10477601]428 call->callback(call->private,
[8b243f2]429 IPC_GET_RETVAL(*data), data);
[10477601]430
[a784a96]431 free(call);
[936351c1]432 return;
433 }
434 }
[10477601]435
[35509652]436 futex_up(&ipc_futex);
[936351c1]437}
438
[10477601]439/** Wait for first IPC call to come.
440 *
441 * @param call Incoming call storage.
442 * @param usec Timeout in microseconds
443 * @param flags Flags passed to SYS_IPC_WAIT (blocking, nonblocking).
[8b243f2]444 *
[10477601]445 * @return Hash of the call. Note that certain bits have special
446 * meaning: IPC_CALLID_ANSWERED is set in an answer
447 * and IPC_CALLID_NOTIFICATION is used for notifications.
[b419162]448 *
449 */
[10477601]450ipc_callid_t ipc_wait_cycle(ipc_call_t *call, sysarg_t usec,
451 unsigned int flags)
[b419162]452{
[10477601]453 ipc_callid_t callid =
454 __SYSCALL3(SYS_IPC_WAIT, (sysarg_t) call, usec, flags);
455
[80649a91]456 /* Handle received answers */
[fc42b28]457 if (callid & IPC_CALLID_ANSWERED) {
[80649a91]458 handle_answer(callid, call);
[10477601]459 dispatch_queued_calls();
[fc42b28]460 }
[10477601]461
[04a73cdf]462 return callid;
463}
464
[10477601]465/** Interrupt one thread of this task from waiting for IPC.
[04a73cdf]466 *
[10477601]467 */
468void ipc_poke(void)
469{
470 __SYSCALL0(SYS_IPC_POKE);
471}
472
473/** Wait for first IPC call to come.
[8b243f2]474 *
[10477601]475 * Only requests are returned, answers are processed internally.
476 *
477 * @param call Incoming call storage.
478 * @param usec Timeout in microseconds
479 *
480 * @return Hash of the call.
[096ba7a]481 *
[04a73cdf]482 */
[10477601]483ipc_callid_t ipc_wait_for_call_timeout(ipc_call_t *call, sysarg_t usec)
[04a73cdf]484{
485 ipc_callid_t callid;
[10477601]486
[04a73cdf]487 do {
[2d22049]488 callid = ipc_wait_cycle(call, usec, SYNCH_FLAGS_NONE);
[04a73cdf]489 } while (callid & IPC_CALLID_ANSWERED);
[10477601]490
[04a73cdf]491 return callid;
492}
493
494/** Check if there is an IPC call waiting to be picked up.
495 *
[10477601]496 * Only requests are returned, answers are processed internally.
497 *
498 * @param call Incoming call storage.
499 *
500 * @return Hash of the call.
501 *
[04a73cdf]502 */
503ipc_callid_t ipc_trywait_for_call(ipc_call_t *call)
504{
505 ipc_callid_t callid;
[10477601]506
[04a73cdf]507 do {
[8b243f2]508 callid = ipc_wait_cycle(call, SYNCH_NO_TIMEOUT,
509 SYNCH_FLAGS_NON_BLOCKING);
[06502f7d]510 } while (callid & IPC_CALLID_ANSWERED);
[10477601]511
[b419162]512 return callid;
513}
[5106e98]514
[8b243f2]515/** Hang up a phone.
516 *
[10477601]517 * @param phoneid Handle of the phone to be hung up.
518 *
519 * @return Zero on success or a negative error code.
[8b243f2]520 *
521 */
[7048773]522int ipc_hangup(int phoneid)
523{
524 return __SYSCALL1(SYS_IPC_HANGUP, phoneid);
525}
[6180b57]526
[8b243f2]527/** Forward a received call to another destination.
[10477601]528 *
529 * For non-system methods, the old method, arg1 and arg2 are rewritten
530 * by the new values. For system methods, the new method, arg1 and arg2
531 * are written to the old arg1, arg2 and arg3, respectivelly. Calls with
532 * immutable methods are forwarded verbatim.
[8b243f2]533 *
[228e490]534 * @param callid Hash of the call to forward.
535 * @param phoneid Phone handle to use for forwarding.
536 * @param imethod New interface and method for the forwarded call.
537 * @param arg1 New value of the first argument for the forwarded call.
538 * @param arg2 New value of the second argument for the forwarded call.
539 * @param mode Flags specifying mode of the forward operation.
[8b243f2]540 *
[228e490]541 * @return Zero on success or an error code.
[8b243f2]542 *
543 */
[10477601]544int ipc_forward_fast(ipc_callid_t callid, int phoneid, sysarg_t imethod,
545 sysarg_t arg1, sysarg_t arg2, unsigned int mode)
[043dcc27]546{
[228e490]547 return __SYSCALL6(SYS_IPC_FORWARD_FAST, callid, phoneid, imethod, arg1,
[90c35436]548 arg2, mode);
[043dcc27]549}
550
[10477601]551int ipc_forward_slow(ipc_callid_t callid, int phoneid, sysarg_t imethod,
[96b02eb9]552 sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t arg5,
[10477601]553 unsigned int mode)
[48daf64]554{
555 ipc_call_t data;
[228e490]556
557 IPC_SET_IMETHOD(data, imethod);
[48daf64]558 IPC_SET_ARG1(data, arg1);
559 IPC_SET_ARG2(data, arg2);
560 IPC_SET_ARG3(data, arg3);
561 IPC_SET_ARG4(data, arg4);
562 IPC_SET_ARG5(data, arg5);
[228e490]563
[10477601]564 return __SYSCALL4(SYS_IPC_FORWARD_SLOW, callid, phoneid, (sysarg_t) &data,
565 mode);
[48daf64]566}
567
[9a1b20c]568/** Connect to a task specified by id.
[6b10dab]569 *
[9a1b20c]570 */
571int ipc_connect_kbox(task_id_t id)
572{
[6b10dab]573#ifdef __32_BITS__
574 sysarg64_t arg = (sysarg64_t) id;
[9a1b20c]575 return __SYSCALL1(SYS_IPC_CONNECT_KBOX, (sysarg_t) &arg);
[6b10dab]576#endif
577
578#ifdef __64_BITS__
579 return __SYSCALL1(SYS_IPC_CONNECT_KBOX, (sysarg_t) id);
580#endif
[9a1b20c]581}
[6b10dab]582
[fadd381]583/** @}
[b2951e2]584 */
Note: See TracBrowser for help on using the repository browser.