Changeset 27d293a in mainline for uspace/srv/rd/rd.c


Ignore:
Timestamp:
2007-12-31T16:46:43Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
215e375
Parents:
3115355
Message:

Rename IPC_M_AS_AREA_SEND to IPC_M_SHARE_OUT. Rename IPC_M_AS_AREA_RECV to
IPC_M_SHARE_IN. Provide user-friendly wrappers for these methods so that even
dummies can get it right. Some applications using simpler protocols still use
these methods directly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/rd/rd.c

    r3115355 r27d293a  
    104104         * Now we wait for the client to send us its communication as_area.
    105105         */
    106         callid = async_get_call(&call);
    107         if (IPC_GET_METHOD(call) == IPC_M_AS_AREA_SEND) {
    108                 if (IPC_GET_ARG1(call) >= (ipcarg_t) BLOCK_SIZE) {
     106        size_t size;
     107        if (ipc_share_out_receive(&callid, &size, NULL)) {
     108                if (size >= BLOCK_SIZE) {
    109109                        /*
    110110                         * The client sends an as_area that can absorb the whole
    111111                         * block.
    112112                         */
    113                         ipc_answer_1(callid, EOK, (uintptr_t) fs_va);
     113                        (void) ipc_share_out_deliver(callid, fs_va);
    114114                } else {
    115115                        /*
Note: See TracChangeset for help on using the changeset viewer.