Subversion Repositories HelenOS

Rev

Rev 2662 | Rev 2676 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2662 Rev 2663
Line 687... Line 687...
687
 *
687
 *
688
 * So far, this wrapper is to be used from within a connection fibril.
688
 * So far, this wrapper is to be used from within a connection fibril.
689
 *
689
 *
690
 * @param callid    Storage where the hash of the IPC_M_DATA_READ call will
690
 * @param callid    Storage where the hash of the IPC_M_DATA_READ call will
691
 *          be stored.
691
 *          be stored.
692
 * @param size      Storage where the maximum size will be stored.
692
 * @param size      Storage where the maximum size will be stored. Can be
-
 
693
 *          NULL.
693
 *
694
 *
694
 * @return      Non-zero on success, zero on failure.
695
 * @return      Non-zero on success, zero on failure.
695
 */
696
 */
696
int ipc_data_read_receive(ipc_callid_t *callid, size_t *size)
697
int ipc_data_read_receive(ipc_callid_t *callid, size_t *size)
697
{
698
{
Line 700... Line 701...
700
    assert(callid);
701
    assert(callid);
701
 
702
 
702
    *callid = async_get_call(&data);
703
    *callid = async_get_call(&data);
703
    if (IPC_GET_METHOD(data) != IPC_M_DATA_READ)
704
    if (IPC_GET_METHOD(data) != IPC_M_DATA_READ)
704
        return 0;
705
        return 0;
705
    assert(size);
706
    if (size)
706
    *size = (size_t) IPC_GET_ARG2(data);
707
        *size = (size_t) IPC_GET_ARG2(data);
707
    return 1;
708
    return 1;
708
}
709
}
709
 
710
 
710
/** Wrapper for answering the IPC_M_DATA_READ calls.
711
/** Wrapper for answering the IPC_M_DATA_READ calls.
711
 *
712
 *