Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/avs/ns/contract.h
          +++ new/usr/src/uts/common/avs/ns/contract.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 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
       25 +/*
       26 + * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       27 + */
  25   28  
  26   29  /*
  27   30   * The sole purpose of this file is to document our violations of the DDI
  28   31   * in Solaris and to get ddict to run on the data services stack.
  29   32   * Definitions and declarations contained in this file are never compiled
  30   33   * into the code.  It is only included if we are running ddict on our src.
  31   34   *
  32   35   * IMPORTANT NOTE:
  33   36   * Many of the declarations are not correct. It does not matter.
  34   37   * Structure declarations only define the fields we require.
↓ open down ↓ 113 lines elided ↑ open up ↑
 148  151   */
 149  152  
 150  153  /*
 151  154   * NSKERN module violations
 152  155   */
 153  156  #define UL_GETFSIZE     0
 154  157  #define USHRT_MAX       0
 155  158  
 156  159  typedef u_longlong_t    rlim64_t;
 157  160  int ulimit() { }
 158      -int maxphys;
      161 +volatile int maxphys;
 159  162  
 160  163  #define AT_SIZE 0
 161  164  #define VBLK    0
 162  165  #define VCHR    0
 163  166  #define VREG    0
 164  167  #define VLNK    0
 165  168  
 166  169  #define VOP_CLOSE(vp, f, c, o, cr)      ((void)0)
 167  170  #define VOP_RWLOCK(vp, w)       ((void)0)
 168  171  #define VOP_RWUNLOCK(vp, w)     ((void)0)
↓ open down ↓ 367 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX