Print this page
NEX-17446 cleanup of hot unplugged disks fails intermittently
Reviewed by: Dan Fields <dan.fields@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/sunndi.h
          +++ new/usr/src/uts/common/sys/sunndi.h
↓ open down ↓ 10 lines elided ↑ open up ↑
  11   11   * and limitations under the License.
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  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   * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
       24 + * Copyright 2018 Nexenta Systems, Inc.
  23   25   */
  24   26  
  25   27  #ifndef _SYS_SUNNDI_H
  26   28  #define _SYS_SUNNDI_H
  27   29  
  28   30  /*
  29   31   * Sun Specific NDI definitions
  30   32   */
  31   33  
  32   34  #include <sys/esunddi.h>
↓ open down ↓ 285 lines elided ↑ open up ↑
 318  320  #define NDI_CONFIG_REPROBE      0x00010000 /* force reprobe (deferred attach) */
 319  321  #define NDI_DEVI_ONLINE         0x00020000 /* force offlined device to online */
 320  322  #define NDI_DEVI_OFFLINE        0x00040000 /* set detached device to offline */
 321  323  #define NDI_POST_EVENT          0x00080000 /* Post NDI events before remove */
 322  324  #define NDI_BRANCH_EVENT_OP     0x01000000 /* branch op needs branch event */
 323  325  #define NDI_NO_EVENT_STATE_CHNG 0x02000000 /* don't change the event state */
 324  326  #define NDI_DRV_CONF_REPROBE    0x04000000 /* reprobe conf-enum'd nodes only */
 325  327  #define NDI_DETACH_DRIVER       0x08000000 /* performing driver_detach */
 326  328  #define NDI_MTC_OFF             0x10000000 /* disable multi-threading */
 327  329  #define NDI_USER_REQ            0x20000000 /* user requested operation */
      330 +#define NDI_DEVI_GONE           0x40000000 /* device is gone */
 328  331  
 329  332  /* ndi interface flag values */
 330  333  #define NDI_SLEEP               0x000000
 331  334  #define NDI_NOSLEEP             0x100000
 332  335  #define NDI_EVENT_NOPASS        0x200000 /* do not pass event req up the tree */
 333  336  
 334  337  int
 335  338  ndi_devi_offline(dev_info_t *dip, uint_t flags);
 336  339  
 337  340  /*
↓ open down ↓ 522 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX