2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 2002-2003, Network Appliance, Inc. All rights reserved. 2N/A * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A * PURPOSE: Wait for a consumer notification event 2N/A * Description: Interfaces in this file are completely described in 2N/A * the DAPL 1.1 API, Chapter 6, section 3.2.3 2N/A * DAPL Requirements Version xxx, 6.3.2.3 2N/A * Wait for a consumer notification event 2N/A * DAT_INVALID_HANDLE 2N/A * DAT_INVALID_PARAMETER 2N/A * Check the evd ring buffer for events, if nothing is found 2N/A * peek into the CQ to see if there are events 2N/A /* shift list by one to simulate round-robin */ 2N/A /* verify that evd_ptr is still in the list */ 2N/A * After the first triggering, this will be a valid handle. 2N/A * If we're racing with wakeups of other CNO waiters, 2N/A * The only other reason we could have made it out of 2N/A * the loop is a timeout.