dapl_pz_util.c revision 9e39c5ba00a55fa05777cc94b148296af305e135
82a2fc4751cef28c0bdc327d02012bf8796083b9James Carlson * CDDL HEADER START
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * The contents of this file are subject to the terms of the
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * Common Development and Distribution License (the "License").
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * You may not use this file except in compliance with the License.
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * See the License for the specific language governing permissions
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * and limitations under the License.
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * When distributing Covered Code, include this CDDL HEADER in each
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * If applicable, add the following below this CDDL HEADER, with the
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * fields enclosed by brackets "[]" replaced with your own identifying
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * information: Portions Copyright [yyyy] [name of copyright owner]
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * CDDL HEADER END
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * Copyright (c) 2002-2003, Network Appliance, Inc. All rights reserved.
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * Use is subject to license terms.
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * PURPOSE: Manage PZ structure
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * $Id: dapl_pz_util.c,v 1.7 2003/06/13 12:21:11 sjs2 Exp $
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * dapl_pz_alloc
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * alloc and initialize an PZ struct
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * Returns:
fb91fd8a302dfb13e250bbefb6a3970c2edc3ae3zf /* Allocate PZ */
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc /* zero the structure */
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * initialize the header
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * initialize the body
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc return (pz);
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * dapl_pz_dealloc
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * free an PZ struct
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc * Returns:
a399b7655a1d835aa8606c2b29e4e777baac8635zf /* reset magic to prevent reuse */