Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 394e22f in mainline


Ignore:
Timestamp:
2019-01-18T22:15:50Z (2 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Parents:
5b3e74a
Message:

Add async_data_read/write_forward_x_y() variants

Location:
uspace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/async/server.c

    r5b3e74a r394e22f  
    14001400}
    14011401
     1402errno_t async_data_read_forward_0_0(async_exch_t *exch, sysarg_t imethod)
     1403{
     1404        return async_data_read_forward_fast(exch, imethod, 0, 0, 0, 0, NULL);
     1405}
     1406
     1407errno_t async_data_read_forward_1_0(async_exch_t *exch, sysarg_t imethod,
     1408    sysarg_t arg1)
     1409{
     1410        return async_data_read_forward_fast(exch, imethod, arg1, 0, 0, 0, NULL);
     1411}
     1412
     1413errno_t async_data_read_forward_2_0(async_exch_t *exch, sysarg_t imethod,
     1414    sysarg_t arg1, sysarg_t arg2)
     1415{
     1416        return async_data_read_forward_fast(exch, imethod, arg1, arg2, 0,
     1417            0, NULL);
     1418}
     1419
     1420errno_t async_data_read_forward_3_0(async_exch_t *exch, sysarg_t imethod,
     1421    sysarg_t arg1, sysarg_t arg2, sysarg_t arg3)
     1422{
     1423        return async_data_read_forward_fast(exch, imethod, arg1, arg2, arg3,
     1424            0, NULL);
     1425}
     1426
     1427errno_t async_data_read_forward_4_0(async_exch_t *exch, sysarg_t imethod,
     1428    sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4)
     1429{
     1430        return async_data_read_forward_fast(exch, imethod, arg1, arg2, arg3,
     1431            arg4, NULL);
     1432}
     1433
     1434errno_t async_data_read_forward_0_1(async_exch_t *exch, sysarg_t imethod,
     1435    ipc_call_t *dataptr)
     1436{
     1437        return async_data_read_forward_fast(exch, imethod, 0, 0, 0,
     1438            0, dataptr);
     1439}
     1440
     1441errno_t async_data_read_forward_1_1(async_exch_t *exch, sysarg_t imethod,
     1442    sysarg_t arg1, ipc_call_t *dataptr)
     1443{
     1444        return async_data_read_forward_fast(exch, imethod, arg1, 0, 0,
     1445            0, dataptr);
     1446}
     1447
     1448errno_t async_data_read_forward_2_1(async_exch_t *exch, sysarg_t imethod,
     1449    sysarg_t arg1, sysarg_t arg2, ipc_call_t *dataptr)
     1450{
     1451        return async_data_read_forward_fast(exch, imethod, arg1, arg2, 0,
     1452            0, dataptr);
     1453}
     1454
     1455errno_t async_data_read_forward_3_1(async_exch_t *exch, sysarg_t imethod,
     1456    sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, ipc_call_t *dataptr)
     1457{
     1458        return async_data_read_forward_fast(exch, imethod, arg1, arg2, arg3,
     1459            0, dataptr);
     1460}
     1461
    14021462errno_t async_data_read_forward_4_1(async_exch_t *exch, sysarg_t imethod,
    14031463    sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4,
     
    15851645}
    15861646
     1647errno_t async_data_write_forward_0_0(async_exch_t *exch, sysarg_t imethod)
     1648{
     1649        return async_data_write_forward_fast(exch, imethod, 0, 0, 0,
     1650            0, NULL);
     1651}
     1652
     1653errno_t async_data_write_forward_1_0(async_exch_t *exch, sysarg_t imethod,
     1654    sysarg_t arg1)
     1655{
     1656        return async_data_write_forward_fast(exch, imethod, arg1, 0, 0,
     1657            0, NULL);
     1658}
     1659
     1660errno_t async_data_write_forward_2_0(async_exch_t *exch, sysarg_t imethod,
     1661    sysarg_t arg1, sysarg_t arg2)
     1662{
     1663        return async_data_write_forward_fast(exch, imethod, arg1, arg2, 0,
     1664            0, NULL);
     1665}
     1666
     1667errno_t async_data_write_forward_3_0(async_exch_t *exch, sysarg_t imethod,
     1668    sysarg_t arg1, sysarg_t arg2, sysarg_t arg3)
     1669{
     1670        return async_data_write_forward_fast(exch, imethod, arg1, arg2, arg3,
     1671            0, NULL);
     1672}
     1673
     1674errno_t async_data_write_forward_4_0(async_exch_t *exch, sysarg_t imethod,
     1675    sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4)
     1676{
     1677        return async_data_write_forward_fast(exch, imethod, arg1, arg2, arg3,
     1678            arg4, NULL);
     1679}
     1680
     1681errno_t async_data_write_forward_0_1(async_exch_t *exch, sysarg_t imethod,
     1682    ipc_call_t *dataptr)
     1683{
     1684        return async_data_write_forward_fast(exch, imethod, 0, 0, 0,
     1685            0, dataptr);
     1686}
     1687
     1688errno_t async_data_write_forward_1_1(async_exch_t *exch, sysarg_t imethod,
     1689    sysarg_t arg1, ipc_call_t *dataptr)
     1690{
     1691        return async_data_write_forward_fast(exch, imethod, arg1, 0, 0,
     1692            0, dataptr);
     1693}
     1694
     1695errno_t async_data_write_forward_2_1(async_exch_t *exch, sysarg_t imethod,
     1696    sysarg_t arg1, sysarg_t arg2, ipc_call_t *dataptr)
     1697{
     1698        return async_data_write_forward_fast(exch, imethod, arg1, arg2, 0,
     1699            0, dataptr);
     1700}
     1701
     1702errno_t async_data_write_forward_3_1(async_exch_t *exch, sysarg_t imethod,
     1703    sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, ipc_call_t *dataptr)
     1704{
     1705        return async_data_write_forward_fast(exch, imethod, arg1, arg2, arg3,
     1706            0, dataptr);
     1707}
     1708
    15871709errno_t async_data_write_forward_4_1(async_exch_t *exch, sysarg_t imethod,
    15881710    sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4,
  • uspace/lib/c/include/async.h

    r5b3e74a r394e22f  
    312312extern errno_t async_share_out_finalize(ipc_call_t *, void **);
    313313
     314extern errno_t async_data_read_forward_0_0(async_exch_t *, sysarg_t);
     315extern errno_t async_data_read_forward_1_0(async_exch_t *, sysarg_t, sysarg_t);
     316extern errno_t async_data_read_forward_2_0(async_exch_t *, sysarg_t, sysarg_t,
     317    sysarg_t);
     318extern errno_t async_data_read_forward_3_0(async_exch_t *, sysarg_t, sysarg_t,
     319    sysarg_t, sysarg_t);
     320extern errno_t async_data_read_forward_4_0(async_exch_t *, sysarg_t, sysarg_t,
     321    sysarg_t, sysarg_t, sysarg_t);
     322
     323extern errno_t async_data_read_forward_0_1(async_exch_t *, sysarg_t,
     324    ipc_call_t *);
     325extern errno_t async_data_read_forward_1_1(async_exch_t *, sysarg_t, sysarg_t,
     326    ipc_call_t *);
     327extern errno_t async_data_read_forward_2_1(async_exch_t *, sysarg_t, sysarg_t,
     328    sysarg_t, ipc_call_t *);
     329extern errno_t async_data_read_forward_3_1(async_exch_t *, sysarg_t, sysarg_t,
     330    sysarg_t, sysarg_t, ipc_call_t *);
    314331extern errno_t async_data_read_forward_4_1(async_exch_t *, sysarg_t, sysarg_t,
    315332    sysarg_t, sysarg_t, sysarg_t, ipc_call_t *);
     
    320337extern errno_t async_data_read_finalize(ipc_call_t *, const void *, size_t);
    321338
     339extern errno_t async_data_write_forward_0_0(async_exch_t *, sysarg_t);
     340extern errno_t async_data_write_forward_1_0(async_exch_t *, sysarg_t, sysarg_t);
     341extern errno_t async_data_write_forward_2_0(async_exch_t *, sysarg_t, sysarg_t,
     342    sysarg_t);
     343extern errno_t async_data_write_forward_3_0(async_exch_t *, sysarg_t, sysarg_t,
     344    sysarg_t, sysarg_t);
     345extern errno_t async_data_write_forward_4_0(async_exch_t *, sysarg_t, sysarg_t,
     346    sysarg_t, sysarg_t, sysarg_t);
     347
     348extern errno_t async_data_write_forward_0_1(async_exch_t *, sysarg_t,
     349    ipc_call_t *);
     350extern errno_t async_data_write_forward_1_1(async_exch_t *, sysarg_t, sysarg_t,
     351    ipc_call_t *);
     352extern errno_t async_data_write_forward_2_1(async_exch_t *, sysarg_t, sysarg_t,
     353    sysarg_t, ipc_call_t *);
     354extern errno_t async_data_write_forward_3_1(async_exch_t *, sysarg_t, sysarg_t,
     355    sysarg_t, sysarg_t, ipc_call_t *);
    322356extern errno_t async_data_write_forward_4_1(async_exch_t *, sysarg_t, sysarg_t,
    323357    sysarg_t, sysarg_t, sysarg_t, ipc_call_t *);
  • uspace/srv/vfs/vfs_ops.c

    r5b3e74a r394e22f  
    637637
    638638        async_exch_t *exch = vfs_exchange_grab(node->fs_handle);
    639         errno_t rc = async_data_read_forward_4_1(exch, VFS_OUT_STAT,
    640             node->service_id, node->index, true, 0, NULL);
     639        errno_t rc = async_data_read_forward_3_0(exch, VFS_OUT_STAT,
     640            node->service_id, node->index, true);
    641641        vfs_exchange_release(exch);
    642642
     
    654654
    655655        async_exch_t *exch = vfs_exchange_grab(node->fs_handle);
    656         errno_t rc = async_data_read_forward_4_1(exch, VFS_OUT_STATFS,
    657             node->service_id, node->index, false, 0, NULL);
     656        errno_t rc = async_data_read_forward_3_0(exch, VFS_OUT_STATFS,
     657            node->service_id, node->index, false);
    658658        vfs_exchange_release(exch);
    659659
Note: See TracChangeset for help on using the changeset viewer.