Subversion Repositories HelenOS

Rev

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

Rev 2677 Rev 2678
Line 675... Line 675...
675
 * @param flags     Storage where the received flags will be stored. Can be
675
 * @param flags     Storage where the received flags will be stored. Can be
676
 *          NULL.
676
 *          NULL.
677
 *
677
 *
678
 * @return      Zero on success or a negative error code from errno.h.
678
 * @return      Zero on success or a negative error code from errno.h.
679
 */
679
 */
680
int ipc_share_in_send(int phoneid, void *dst, size_t size, ipcarg_t arg,
680
int ipc_share_in_start(int phoneid, void *dst, size_t size, ipcarg_t arg,
681
    int *flags)
681
    int *flags)
682
{
682
{
683
    int res;
683
    int res;
684
    sysarg_t tmp_flags;
684
    sysarg_t tmp_flags;
685
    res = ipc_call_sync_3_2(phoneid, IPC_M_SHARE_IN, (ipcarg_t) dst,
685
    res = ipc_call_sync_3_2(phoneid, IPC_M_SHARE_IN, (ipcarg_t) dst,
Line 725... Line 725...
725
 * @param src       Source address space base.
725
 * @param src       Source address space base.
726
 * @param flags     Flags to be used for sharing. Bits can be only cleared.
726
 * @param flags     Flags to be used for sharing. Bits can be only cleared.
727
 *
727
 *
728
 * @return      Zero on success or a value from @ref errno.h on failure.
728
 * @return      Zero on success or a value from @ref errno.h on failure.
729
 */
729
 */
730
int ipc_share_in_deliver(ipc_callid_t callid, void *src, int flags)
730
int ipc_share_in_finalize(ipc_callid_t callid, void *src, int flags)
731
{
731
{
732
    return ipc_answer_2(callid, EOK, (ipcarg_t) src, (ipcarg_t) flags);
732
    return ipc_answer_2(callid, EOK, (ipcarg_t) src, (ipcarg_t) flags);
733
}
733
}
734
 
734
 
735
/** Wrapper for making IPC_M_SHARE_OUT calls.
735
/** Wrapper for making IPC_M_SHARE_OUT calls.
Line 738... Line 738...
738
 * @param src       Source address space area base address.
738
 * @param src       Source address space area base address.
739
 * @param flags     Flags to be used for sharing. Bits can be only cleared.
739
 * @param flags     Flags to be used for sharing. Bits can be only cleared.
740
 *
740
 *
741
 * @return      Zero on success or a negative error code from errno.h.
741
 * @return      Zero on success or a negative error code from errno.h.
742
 */
742
 */
743
int ipc_share_out_send(int phoneid, void *src, int flags)
743
int ipc_share_out_start(int phoneid, void *src, int flags)
744
{
744
{
745
    return ipc_call_sync_3_0(phoneid, IPC_M_SHARE_OUT, (ipcarg_t) src, 0,
745
    return ipc_call_sync_3_0(phoneid, IPC_M_SHARE_OUT, (ipcarg_t) src, 0,
746
        (ipcarg_t) flags);
746
        (ipcarg_t) flags);
747
}
747
}
748
 
748
 
Line 785... Line 785...
785
 * @param callid    Hash of the IPC_M_DATA_WRITE call to answer.
785
 * @param callid    Hash of the IPC_M_DATA_WRITE call to answer.
786
 * @param dst       Destination address space area base address.   
786
 * @param dst       Destination address space area base address.   
787
 *
787
 *
788
 * @return      Zero on success or a value from @ref errno.h on failure.
788
 * @return      Zero on success or a value from @ref errno.h on failure.
789
 */
789
 */
790
int ipc_share_out_deliver(ipc_callid_t callid, void *dst)
790
int ipc_share_out_finalize(ipc_callid_t callid, void *dst)
791
{
791
{
792
    return ipc_answer_1(callid, EOK, (ipcarg_t) dst);
792
    return ipc_answer_1(callid, EOK, (ipcarg_t) dst);
793
}
793
}
794
 
794
 
795
 
795
 
Line 799... Line 799...
799
 * @param dst       Address of the beginning of the destination buffer.
799
 * @param dst       Address of the beginning of the destination buffer.
800
 * @param size      Size of the destination buffer.
800
 * @param size      Size of the destination buffer.
801
 *
801
 *
802
 * @return      Zero on success or a negative error code from errno.h.
802
 * @return      Zero on success or a negative error code from errno.h.
803
 */
803
 */
804
int ipc_data_read_send(int phoneid, void *dst, size_t size)
804
int ipc_data_read_start(int phoneid, void *dst, size_t size)
805
{
805
{
806
    return ipc_call_sync_2_0(phoneid, IPC_M_DATA_READ, (ipcarg_t) dst,
806
    return ipc_call_sync_2_0(phoneid, IPC_M_DATA_READ, (ipcarg_t) dst,
807
        (ipcarg_t) size);
807
        (ipcarg_t) size);
808
}
808
}
809
 
809
 
Line 845... Line 845...
845
 * @param size      Size for the IPC_M_DATA_READ call. Can be smaller than
845
 * @param size      Size for the IPC_M_DATA_READ call. Can be smaller than
846
 *          the maximum size announced by the sender.
846
 *          the maximum size announced by the sender.
847
 *
847
 *
848
 * @return      Zero on success or a value from @ref errno.h on failure.
848
 * @return      Zero on success or a value from @ref errno.h on failure.
849
 */
849
 */
850
int ipc_data_read_deliver(ipc_callid_t callid, void *src, size_t size)
850
int ipc_data_read_finalize(ipc_callid_t callid, void *src, size_t size)
851
{
851
{
852
    return ipc_answer_2(callid, EOK, (ipcarg_t) src, (ipcarg_t) size);
852
    return ipc_answer_2(callid, EOK, (ipcarg_t) src, (ipcarg_t) size);
853
}
853
}
854
 
854
 
855
/** Wrapper for making IPC_M_DATA_WRITE calls.
855
/** Wrapper for making IPC_M_DATA_WRITE calls.
Line 858... Line 858...
858
 * @param src       Address of the beginning of the source buffer.
858
 * @param src       Address of the beginning of the source buffer.
859
 * @param size      Size of the source buffer.
859
 * @param size      Size of the source buffer.
860
 *
860
 *
861
 * @return      Zero on success or a negative error code from errno.h.
861
 * @return      Zero on success or a negative error code from errno.h.
862
 */
862
 */
863
int ipc_data_write_send(int phoneid, void *src, size_t size)
863
int ipc_data_write_start(int phoneid, void *src, size_t size)
864
{
864
{
865
    return ipc_call_sync_2_0(phoneid, IPC_M_DATA_WRITE, (ipcarg_t) src,
865
    return ipc_call_sync_2_0(phoneid, IPC_M_DATA_WRITE, (ipcarg_t) src,
866
        (ipcarg_t) size);
866
        (ipcarg_t) size);
867
}
867
}
868
 
868
 
Line 903... Line 903...
903
 * @param dst       Final destination address for the IPC_M_DATA_WRITE call.
903
 * @param dst       Final destination address for the IPC_M_DATA_WRITE call.
904
 * @param size      Final size for the IPC_M_DATA_WRITE call.
904
 * @param size      Final size for the IPC_M_DATA_WRITE call.
905
 *
905
 *
906
 * @return      Zero on success or a value from @ref errno.h on failure.
906
 * @return      Zero on success or a value from @ref errno.h on failure.
907
 */
907
 */
908
int ipc_data_write_deliver(ipc_callid_t callid, void *dst, size_t size)
908
int ipc_data_write_finalize(ipc_callid_t callid, void *dst, size_t size)
909
{
909
{
910
    return ipc_answer_2(callid, EOK, (ipcarg_t) dst, (ipcarg_t) size);
910
    return ipc_answer_2(callid, EOK, (ipcarg_t) dst, (ipcarg_t) size);
911
}
911
}
912
 
912
 
913
/** @}
913
/** @}