/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _ISNS_DD_H
#define _ISNS_DD_H
#include <synch.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* dd matrix
*/
typedef struct matrix {
uint32_t x, y;
/* uint32_t *z; */ /* obsoleted- map between uid & mid */
/* rwlock_t l; */ /* obsoleted */
bmp_t *m;
struct cache *c;
} matrix_t;
#define MATRIX_X_INFO(X) (X[0])
{\
int i1624 = 0;\
int j1624 = 0;\
STMT\
}\
j1624 ++;\
}\
i1624 ++;\
}\
}
/* functions */
int dd_matrix_init(struct cache *);
int remove_dd_object(uint32_t);
int remove_dds_object(uint32_t);
int add_dd_member(isns_obj_t *);
int add_dds_member(isns_obj_t *);
int remove_dd_member(isns_obj_t *);
int cb_clone_attrs(void *, void *);
int is_dd_active(uint32_t);
int update_ddd(void *, const uchar_t);
int verify_ddd(void);
#ifdef __cplusplus
}
#endif
#endif /* _ISNS_DD_H */