Changeset f67d8ee in mainline
- Timestamp:
- 2018-08-03T10:16:47Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f2c8f55
- Parents:
- 9b7adc38
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/abi/ipc/methods.h
r9b7adc38 rf67d8ee 61 61 IPC_M_PHONE_HUNGUP = 0, 62 62 63 /** Protocol for initializing callback connections. 64 * 65 * Calling process asks the callee to create a callback connection, 66 * so that it can start initiating new messages. 67 * 68 * The protocol for negotiating is: 69 * - sys_connect_to_me - sends a message IPC_M_CONNECT_TO_ME 70 * - recipient - upon receipt tries to allocate new phone 71 * - if it fails, responds with ELIMIT 72 * - passes call to userspace. If userspace 73 * responds with error, phone is deallocated and 74 * error is sent back to caller. Otherwise 75 * the call is accepted and the response is sent back. 76 * - the hash of the allocated phone is passed to userspace 77 * (on the receiving side) as ARG5 of the call. 63 /** Protocol for initializing new callback connections. 64 * 65 * Sender asks the recipient to create a new connection from 66 * the recipient to the sender. 67 * 68 * Sender: 69 * - uspace: arg1 .. callback iface 70 * arg2 .. <custom> 71 * arg3 .. <custom> 72 * arg4 .. <unused> 73 * - kernel: arg5 .. new recipient's connection phone capability 74 * 75 * recipient: 76 * - uspace: arg1 .. <unused> 77 * arg2 .. <unused> 78 * arg3 .. <unused> 79 * arg4 .. <unused> 80 * - kernel: arg5 .. new recipient's connection phone hash 81 * 78 82 */ 79 83 IPC_M_CONNECT_TO_ME, 80 84 81 /** Protocol for initializing new foward connections. 82 * 83 * Calling process asks the callee to create for him a new connection. 84 * E.g. the caller wants a name server to connect him to print server. 85 * 86 * The protocol for negotiating is: 87 * - sys_connect_me_to - send a synchronous message to name server 88 * indicating that it wants to be connected to some 89 * service 90 * - arg1/2/3 are user specified, arg5 contains 91 * address of the phone that should be connected 92 * (TODO: it leaks to userspace) 93 * - recipient - if ipc_answer == 0, then accept connection 94 * - otherwise connection refused 95 * - recepient may forward message. 85 /** Protocol for initializing new forward connections. 86 * 87 * Sender asks the recipient to create a new connection from 88 * the sender to the recipient. The message can be forwarded, 89 * thus the immediate recipient acts as a broker and the connection 90 * is created to the final recipient. 91 * 92 * Sender: 93 * - uspace: arg1 .. iface 94 * arg2 .. <custom> 95 * arg3 .. <custom> 96 * arg4 .. flags (e.g. IPC_FLAG_BLOCKING) 97 * - kernel: arg5 .. new sender's connection phone hash 98 * 99 * Recipient: 100 * - uspace: arg1 .. <unused> 101 * arg2 .. <unused> 102 * arg3 .. <unused> 103 * arg4 .. <unused> 104 * - kernel: arg5 .. new sender's connection phone capability 105 * 96 106 */ 97 107 IPC_M_CONNECT_ME_TO,
Note:
See TracChangeset
for help on using the changeset viewer.