Changeset 984a9ba in mainline for uspace/srv/fs/udf/udf_file.c


Ignore:
Timestamp:
2018-07-05T09:34:09Z (6 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
63d46341
Parents:
76f566d
Message:

do not expose the call capability handler from the async framework

Keep the call capability handler encapsulated within the async framework
and do not expose it explicitly via its API. Use the pointer to
ipc_call_t as the sole object identifying an IPC call in the code that
uses the async framework.

This plugs a major leak in the abstraction and also simplifies both the
async framework (slightly) and all IPC servers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/udf/udf_file.c

    r76f566d r984a9ba  
    568568 *
    569569 * @param read_len Returned value. Length file or part file which we could read.
    570  * @param chandle
     570 * @param call     IPC call
    571571 * @param node     UDF node
    572572 * @param pos      Position in file since we have to read.
     
    576576 *
    577577 */
    578 errno_t udf_read_file(size_t *read_len, cap_call_handle_t chandle, udf_node_t *node,
     578errno_t udf_read_file(size_t *read_len, ipc_call_t *call, udf_node_t *node,
    579579    aoff64_t pos, size_t len)
    580580{
     
    598598            BLOCK_FLAGS_NONE);
    599599        if (rc != EOK) {
    600                 async_answer_0(chandle, rc);
     600                async_answer_0(call, rc);
    601601                return rc;
    602602        }
     
    619619        }
    620620
    621         async_data_read_finalize(chandle, block->data + sector_pos, *read_len);
     621        async_data_read_finalize(call, block->data + sector_pos, *read_len);
    622622        return block_put(block);
    623623}
Note: See TracChangeset for help on using the changeset viewer.