cong.c revision c0dd49bdd68c0d758a67d56f07826f3b45cfc664
508aff1a85ed04f187fd074799bcaefd630490f1James C. McPherson * CDDL HEADER START
508aff1a85ed04f187fd074799bcaefd630490f1James C. McPherson * The contents of this file are subject to the terms of the
508aff1a85ed04f187fd074799bcaefd630490f1James C. McPherson * Common Development and Distribution License (the "License").
508aff1a85ed04f187fd074799bcaefd630490f1James C. McPherson * You may not use this file except in compliance with the License.
508aff1a85ed04f187fd074799bcaefd630490f1James C. McPherson * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
508aff1a85ed04f187fd074799bcaefd630490f1James C. McPherson * or http://www.opensolaris.org/os/licensing.
508aff1a85ed04f187fd074799bcaefd630490f1James C. McPherson * See the License for the specific language governing permissions
508aff1a85ed04f187fd074799bcaefd630490f1James C. McPherson * and limitations under the License.
508aff1a85ed04f187fd074799bcaefd630490f1James C. McPherson * When distributing Covered Code, include this CDDL HEADER in each
508aff1a85ed04f187fd074799bcaefd630490f1James C. McPherson * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
508aff1a85ed04f187fd074799bcaefd630490f1James C. McPherson * If applicable, add the following below this CDDL HEADER, with the
508aff1a85ed04f187fd074799bcaefd630490f1James C. McPherson * fields enclosed by brackets "[]" replaced with your own identifying
508aff1a85ed04f187fd074799bcaefd630490f1James C. McPherson * information: Portions Copyright [yyyy] [name of copyright owner]
508aff1a85ed04f187fd074799bcaefd630490f1James C. McPherson * CDDL HEADER END
508aff1a85ed04f187fd074799bcaefd630490f1James C. McPherson * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
static struct rdsv3_cong_map *
if (insert) {
return (NULL);
return (map);
static struct rdsv3_cong_map *
unsigned long zp;
return (NULL);
for (i = 0; i < RDSV3_CONG_MAP_PAGES; i++) {
if (zp == 0)
goto out;
out:
if (map) {
return (ret);
return (-ENOMEM);
rs_cong_list) {
#if defined(sparc)
#define LE_BIT_XOR 0
unsigned long off;
unsigned long off;
unsigned long off;
int ret = 0;
if (nonblock) {
return (-ENOBUFS);
return (ret);
rdsv3_cong_exit(void)
struct rdsv3_message *
return (rm);
rdsv3_cong_init(void)
m_rb_node));