Changeset 27d293a in mainline for uspace/srv/vfs/vfs_register.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/vfs/vfs_register.c

    r3115355 r27d293a  
    271271         * The client will want us to send him the address space area with PLB.
    272272         */
    273         callid = async_get_call(&call);
    274         if (IPC_GET_METHOD(call) != IPC_M_AS_AREA_RECV) {
     273
     274        if (!ipc_share_in_receive(&callid, &size)) {
    275275                dprintf("Unexpected call, method = %d\n", IPC_GET_METHOD(call));
    276276                list_remove(&fs_info->fs_link);
     
    286286         * We can only send the client address space area PLB_SIZE bytes long.
    287287         */
    288         size = IPC_GET_ARG2(call);
    289288        if (size != PLB_SIZE) {
    290289                dprintf("Client suggests wrong size of PFB, size = %d\n", size);
     
    301300         * Commit to read-only sharing the PLB with the client.
    302301         */
    303         ipc_answer_2(callid, EOK, (ipcarg_t) plb,
    304             (ipcarg_t) (AS_AREA_READ | AS_AREA_CACHEABLE));     
     302        (void) ipc_share_in_deliver(callid, plb,
     303            AS_AREA_READ | AS_AREA_CACHEABLE);
    305304
    306305        dprintf("Sharing PLB.\n");
Note: See TracChangeset for help on using the changeset viewer.