1612N/A * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 0N/A * This software is available to you under a choice of one of two 0N/A * licenses. You may choose to be licensed under the terms of the GNU 0N/A * General Public License (GPL) Version 2, available from the file 0N/A * COPYING in the main directory of this source tree, or the 0N/A * OpenIB.org BSD license below: 0N/A * Redistribution and use in source and binary forms, with or 0N/A * without modification, are permitted provided that the following 0N/A * conditions are met: 0N/A * - Redistributions of source code must retain the above 0N/A * copyright notice, this list of conditions and the following 0N/A * - Redistributions in binary form must reproduce the above 1472N/A * copyright notice, this list of conditions and the following 1472N/A * disclaimer in the documentation and/or other materials 1472N/A * provided with the distribution. 0N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 0N/A * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 1879N/A * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 1879N/A * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 1879N/A * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 1879N/A * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 1879N/A * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 0N/A * OFED Solaris ioctl wrapper 1612N/A /* 1st call gets the length of the data available */ 0N/A /* 2nd call gets the data */