dapl_lmr_sync_rdma.c revision 9e39c5ba00a55fa05777cc94b148296af305e135
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * CDDL HEADER START
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * The contents of this file are subject to the terms of the
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * Common Development and Distribution License (the "License").
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * You may not use this file except in compliance with the License.
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * See the License for the specific language governing permissions
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * and limitations under the License.
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * When distributing Covered Code, include this CDDL HEADER in each
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * If applicable, add the following below this CDDL HEADER, with the
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * fields enclosed by brackets "[]" replaced with your own identifying
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * information: Portions Copyright [yyyy] [name of copyright owner]
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * CDDL HEADER END
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * Use is subject to license terms.
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * PURPOSE: Non-coherent Memory Support
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * Description: Interfaces in this file are completely described in
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * the DAPL 1.2 API, Chapter 6, section 7
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * dapl_lmr_sync_rdma_read
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * uDAPL: User Direct Access Program Library Version 1.2, 6.7.4.1
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * make memory changes visible to an incoming RDMA Read operation.
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * This operation guarantees consistency by locally flushing the non-coherent
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * cache prior to it being retrieved by remote peer RDMA read operation(s)
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * local_segments
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * num_segments
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * DAT_SUCCESS
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * DAT_INVALID_HANDLE
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * DAT_INVALID_PARAMETER
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor return (dapls_ib_lmr_sync_rdma_common(ia_handle, local_segments,
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * dapl_lmr_sync_rdma_write
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * uDAPL: User Direct Access Program Library Version 1.2, 6.7.4.1
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * make effects of an incoming RDMA Write operation visible to Consumer.
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * This operation guarantees consistency by locally invalidating the
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * non-coherent cache whose buffer has been populated by remote peer
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * RDMA write operation(s).
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * local_segments
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * num_segments
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * DAT_SUCCESS
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * DAT_INVALID_HANDLE
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor * DAT_INVALID_PARAMETER