6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
  24  */
  25 /*
  26  * Copyright 2012 Nexenta Systems, Inc.  All rights reserved.
  27  */
  28 
  29 #include <scsi/libses.h>
  30 #include "ses_impl.h"
  31 
  32 static boolean_t ses_plugin_dlclose;
  33 
  34 /*ARGSUSED*/
  35 void *
  36 ses_plugin_ctlpage_lookup(ses_plugin_t *sp, ses_snap_t *snap, int pagenum,
  37     size_t len, ses_node_t *np, boolean_t unique)
  38 {
  39         ses_target_t *tp = snap->ss_target;
  40         ses_snap_page_t *pp;
  41         ses_pagedesc_t *dp;
  42 
  43         if ((pp = ses_snap_ctl_page(snap, pagenum, len, unique)) == NULL)
  44                 return (NULL);
  45 
  46         if ((dp = ses_get_pagedesc(tp, pagenum, SES_PAGE_CTL)) == NULL)
 
 | 
 
 
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
  24  */
  25 /*
  26  * Copyright 2016 Nexenta Systems, Inc.  All rights reserved.
  27  */
  28 
  29 #include <scsi/libses.h>
  30 #include "ses_impl.h"
  31 
  32 static boolean_t ses_plugin_dlclose;
  33 
  34 /*ARGSUSED*/
  35 void *
  36 ses_plugin_ctlpage_lookup(ses_plugin_t *sp, ses_snap_t *snap, int pagenum,
  37     size_t len, ses_node_t *np, boolean_t unique)
  38 {
  39         ses_target_t *tp = snap->ss_target;
  40         ses_snap_page_t *pp;
  41         ses_pagedesc_t *dp;
  42 
  43         if ((pp = ses_snap_ctl_page(snap, pagenum, len, unique)) == NULL)
  44                 return (NULL);
  45 
  46         if ((dp = ses_get_pagedesc(tp, pagenum, SES_PAGE_CTL)) == NULL)
 
 |