1*1991Sheppo /* 2*1991Sheppo * CDDL HEADER START 3*1991Sheppo * 4*1991Sheppo * The contents of this file are subject to the terms of the 5*1991Sheppo * Common Development and Distribution License (the "License"). 6*1991Sheppo * You may not use this file except in compliance with the License. 7*1991Sheppo * 8*1991Sheppo * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*1991Sheppo * or http://www.opensolaris.org/os/licensing. 10*1991Sheppo * See the License for the specific language governing permissions 11*1991Sheppo * and limitations under the License. 12*1991Sheppo * 13*1991Sheppo * When distributing Covered Code, include this CDDL HEADER in each 14*1991Sheppo * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*1991Sheppo * If applicable, add the following below this CDDL HEADER, with the 16*1991Sheppo * fields enclosed by brackets "[]" replaced with your own identifying 17*1991Sheppo * information: Portions Copyright [yyyy] [name of copyright owner] 18*1991Sheppo * 19*1991Sheppo * CDDL HEADER END 20*1991Sheppo */ 21*1991Sheppo 22*1991Sheppo /* 23*1991Sheppo * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*1991Sheppo * Use is subject to license terms. 25*1991Sheppo */ 26*1991Sheppo 27*1991Sheppo #pragma ident "%Z%%M% %I% %E% SMI" 28*1991Sheppo 29*1991Sheppo #include <sys/types.h> 30*1991Sheppo #include <sys/param.h> 31*1991Sheppo #include <sys/mdesc.h> 32*1991Sheppo #include <sys/mdesc_impl.h> 33*1991Sheppo 34*1991Sheppo size_t md_get_bin_size(md_t * ptr)35*1991Sheppomd_get_bin_size(md_t *ptr) 36*1991Sheppo { 37*1991Sheppo md_impl_t *mdp; 38*1991Sheppo 39*1991Sheppo mdp = (md_impl_t *)ptr; 40*1991Sheppo 41*1991Sheppo if (mdp == NULL) 42*1991Sheppo return (0); 43*1991Sheppo 44*1991Sheppo return (mdp->size); 45*1991Sheppo } 46