Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/block/block.c

    rf9b2cb4c r78d50bd  
    144144}
    145145
    146 int block_init(service_id_t service_id, size_t comm_size)
     146int block_init(exch_mgmt_t mgmt, service_id_t service_id,
     147    size_t comm_size)
    147148{
    148149        bd_t *bd;
    149150
    150         async_sess_t *sess = loc_service_connect(service_id, INTERFACE_BLOCK,
     151        async_sess_t *sess = loc_service_connect(mgmt, service_id,
    151152            IPC_FLAG_BLOCKING);
    152153        if (!sess) {
     
    788789}
    789790
     791/** Synchronize blocks to persistent storage.
     792 *
     793 * @param service_id    Service ID of the block device.
     794 * @param ba            Address of first block (physical).
     795 * @param cnt           Number of blocks.
     796 *
     797 * @return              EOK on success or negative error code on failure.
     798 */
     799int block_sync_cache(service_id_t service_id, aoff64_t ba, size_t cnt)
     800{
     801        devcon_t *devcon;
     802
     803        devcon = devcon_search(service_id);
     804        assert(devcon);
     805
     806        return bd_sync_cache(devcon->bd, ba, cnt);
     807}
     808
    790809/** Get device block size.
    791810 *
Note: See TracChangeset for help on using the changeset viewer.