Changeset f8838b8 in mainline


Ignore:
Timestamp:
2011-11-05T15:16:23Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
41e9ef7
Parents:
f346039
Message:

flag, instance, and fs_handle fields can be sent together in a single IPC message

Location:
uspace
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/vfs/vfs.c

    rf346039 rf8838b8  
    875875                sysarg_t p[3];
    876876
    877                 int j;
    878                 for (j = 0; j < 3; ++j) {
    879                         rc = async_req_0_1(exch, VFS_IN_PING, &p[j]);
    880                         if (rc != EOK)
    881                                 goto exit;
    882                 }
     877                rc = async_req_0_3(exch, VFS_IN_PING, &p[0], &p[1], &p[2]);
     878                if (rc != EOK)
     879                        goto exit;
    883880
    884881                mtab_ent->flags = p[0];
  • uspace/srv/vfs/vfs_ops.c

    rf346039 rf8838b8  
    13841384                    str_size(mtab_ent->fs_name));
    13851385
    1386                 sysarg_t p[3];
    1387 
    1388                 p[0] = mtab_ent->flags;
    1389                 p[1] = mtab_ent->instance;
    1390                 p[2] = mtab_ent->fs_handle;
    1391 
    1392                 int i;
    1393                 for (i = 0; i < 3; ++i) {
    1394                         callid = async_get_call(&data);
    1395                         if (IPC_GET_IMETHOD(data) != VFS_IN_PING) {
    1396                                 rc = ENOTSUP;
    1397                                 async_answer_1(callid, rc, 0);
    1398                                 goto exit;
    1399                         }
    1400                         async_answer_1(callid, EOK, p[i]);
     1386                callid = async_get_call(&data);
     1387
     1388                if (IPC_GET_IMETHOD(data) != VFS_IN_PING) {
     1389                        rc = ENOTSUP;
     1390                        async_answer_1(callid, rc, 0);
     1391                        goto exit;
    14011392                }
    14021393
    14031394                rc = EOK;
     1395                async_answer_3(callid, rc, mtab_ent->flags, mtab_ent->instance,
     1396                    mtab_ent->fs_handle);
    14041397        }
    14051398
Note: See TracChangeset for help on using the changeset viewer.