Print this page
NEX-3705 Need to update libses with LID/USN code from sesctld
Reviewed by: Dan Fields <dan.fields@nexenta.com>
Reviewed by: Rob Gittins <rob.gittins@nexenta.com>
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/scsi/libscsi/common/libscsi.h
          +++ new/usr/src/lib/scsi/libscsi/common/libscsi.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
       24 + * Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
  24   25   */
  25   26  
  26   27  #ifndef _LIBSCSI_H
  27   28  #define _LIBSCSI_H
  28   29  
  29   30  #ifdef  __cplusplus
  30   31  extern "C" {
  31   32  #endif
  32   33  
  33   34  #include <sys/types.h>
↓ open down ↓ 75 lines elided ↑ open up ↑
 109  110  extern void libscsi_fini(libscsi_hdl_t *);
 110  111  
 111  112  extern libscsi_target_t *libscsi_open(libscsi_hdl_t *, const char *,
 112  113      const void *);
 113  114  extern void libscsi_close(libscsi_hdl_t *, libscsi_target_t *);
 114  115  extern libscsi_hdl_t *libscsi_get_handle(libscsi_target_t *);
 115  116  
 116  117  extern const char *libscsi_vendor(libscsi_target_t *);
 117  118  extern const char *libscsi_product(libscsi_target_t *);
 118  119  extern const char *libscsi_revision(libscsi_target_t *);
      120 +extern const char *libscsi_lid(libscsi_target_t *);
      121 +extern const char *libscsi_usn(libscsi_target_t *);
 119  122  
 120  123  extern libscsi_errno_t libscsi_errno(libscsi_hdl_t *);
 121  124  extern const char *libscsi_errmsg(libscsi_hdl_t *);
 122  125  extern const char *libscsi_strerror(libscsi_errno_t);
 123  126  extern const char *libscsi_errname(libscsi_errno_t);
 124  127  extern libscsi_errno_t libscsi_errcode(const char *);
 125  128  
 126  129  extern libscsi_action_t *libscsi_action_alloc(libscsi_hdl_t *, spc3_cmd_t,
 127  130      uint_t, void *, size_t);
 128  131  extern sam4_status_t libscsi_action_get_status(const libscsi_action_t *);
↓ open down ↓ 48 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX