Changeset 90c35436 in mainline
- Timestamp:
- 2007-12-02T21:08:03Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 38c706cc
- Parents:
- b61d47d
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/sysipc.c
rb61d47d r90c35436 538 538 * @param method New method to use for the forwarded call. 539 539 * @param arg1 New value of the first argument for the forwarded call. 540 * @param arg2 New value of the second argument for the forwarded call. 540 541 * @param mode Flags that specify mode of the forward operation. 541 542 * 542 543 * @return Return 0 on succes, otherwise return an error code. 543 544 * 544 * In case the original method is a system method, ARG1 and ARG2 are overwritten 545 * in the forwarded message with the new method and the new arg1, respectively. 546 * Otherwise the METHOD and ARG1 are rewritten with the new method and arg1, 547 * respectively. Also note there is a set of immutable methods, for which the 548 * new method and argument is not set and these values are ignored. 545 * In case the original method is a system method, ARG1, ARG2 and ARG3 are 546 * overwritten in the forwarded message with the new method and the new arg1 and 547 * arg2, respectively. Otherwise the METHOD, ARG1 and ARG2 are rewritten with 548 * the new method, arg1 and arg2, respectively. Also note there is a set of 549 * immutable methods, for which the new method and argument is not set and 550 * these values are ignored. 549 551 * 550 552 * Warning: When implementing support for changing additional payload 551 * arguments, make sure that ARG 3is not rewritten for certain553 * arguments, make sure that ARG5 is not rewritten for certain 552 554 * system IPC 553 555 */ -
uspace/lib/libc/generic/ipc.c
rb61d47d r90c35436 598 598 599 599 res = ipc_call_sync_3_5(phoneid, IPC_M_CONNECT_ME_TO, arg1, arg2, arg3, 600 600 NULL, NULL, NULL, NULL, &newphid); 601 601 if (res) 602 602 return res; … … 653 653 * @return Zero on success or an error code. 654 654 * 655 * For non-system methods, the old method and arg1 are rewritten by the new656 * values. For system methods, the new method, arg1 and arg2 are written655 * For non-system methods, the old method, arg1 and arg2 are rewritten by the 656 * new values. For system methods, the new method, arg1 and arg2 are written 657 657 * to the old arg1, arg2 and arg3, respectivelly. Calls with immutable 658 658 * methods are forwarded verbatim. … … 662 662 { 663 663 return __SYSCALL6(SYS_IPC_FORWARD_FAST, callid, phoneid, method, arg1, 664 664 arg2, mode); 665 665 } 666 666
Note:
See TracChangeset
for help on using the changeset viewer.