Print this page
4777 ibdm shouldn't abuse ddi_get_time(9f)
Reviewed by: Rob Gittins <rob.gittins@nexenta.com>
Reviewed by: Albert Lee <albert.lee@nexenta.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/ib/mgt/ibdm/ibdm_ibnex.h
          +++ new/usr/src/uts/common/sys/ib/mgt/ibdm/ibdm_ibnex.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  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   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
       25 +/*
       26 + * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
       27 + */
  25   28  
  26   29  #ifndef _SYS_IB_MGT_IBDM_IBDM_IBNEX_H
  27   30  #define _SYS_IB_MGT_IBDM_IBDM_IBNEX_H
  28   31  
  29   32  /*
  30   33   * This file contains the definitions of private interfaces
  31   34   * and data structures used between IB nexus and IBDM.
  32   35   */
  33   36  
  34   37  #include <sys/ib/ibtl/ibti_common.h>
↓ open down ↓ 173 lines elided ↑ open up ↑
 208  211  
 209  212  /*
 210  213   * HCA list structure.
 211  214   */
 212  215  typedef struct ibdm_hca_list_s {
 213  216          ibdm_port_attr_t        *hl_port_attr;          /* port attributes */
 214  217          struct ibdm_hca_list_s  *hl_next;               /* ptr to next list */
 215  218          ib_guid_t               hl_hca_guid;            /* HCA GUID */
 216  219          uint32_t                hl_nports;              /* #ports of this HCA */
 217  220          uint32_t                hl_nports_active;       /* #ports active */
 218      -        time_t                  hl_attach_time;         /* attach time */
      221 +        hrtime_t                hl_attach_time;         /* attach time */
 219  222          ibt_hca_hdl_t           hl_hca_hdl;             /* HCA handle */
 220  223          ibdm_port_attr_t        *hl_hca_port_attr;      /* Dummy Port Attr */
 221  224                                                          /* for HCA node */
 222  225  } ibdm_hca_list_t;
 223  226  _NOTE(SCHEME_PROTECTS_DATA("Serialized access by cv", ibdm_hca_list_s))
 224  227  
 225  228  /*
 226  229   * The DM callback definitions
 227  230   *
 228  231   * ibdm_callback_t
↓ open down ↓ 188 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX