Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/klwp.h
          +++ new/usr/src/uts/common/sys/klwp.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 2007 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   * Copyright (c) 2013, Joyent, Inc. All rights reserved.
  28   31   */
  29   32  
  30   33  #ifndef _SYS_KLWP_H
  31   34  #define _SYS_KLWP_H
  32   35  
  33   36  #include <sys/types.h>
  34   37  #include <sys/condvar.h>
↓ open down ↓ 158 lines elided ↑ open up ↑
 193  196  
 194  197          void    *lwp_brand;             /* per-lwp brand data */
 195  198          struct psinfo *lwp_spymaster;   /* if an agent LWP, our spymaster */
 196  199  } klwp_t;
 197  200  
 198  201  /* lwp states */
 199  202  #define LWP_USER        0x01            /* Running in user mode */
 200  203  #define LWP_SYS         0x02            /* Running in kernel mode */
 201  204  
 202  205  #if     defined(_KERNEL)
 203      -extern  int     lwp_default_stksize;
      206 +extern  volatile int    lwp_default_stksize;
 204  207  extern  int     lwp_reapcnt;
 205  208  
 206  209  extern  struct _kthread *lwp_deathrow;
 207  210  extern  kmutex_t        reaplock;
 208  211  extern  struct kmem_cache *lwp_cache;
 209  212  extern  void            *segkp_lwp;
 210  213  extern  klwp_t          lwp0;
 211  214  
 212  215  /* where newly-created lwps normally start */
 213  216  extern  void    lwp_rtt(void);
 214  217  
 215  218  #endif  /* _KERNEL */
 216  219  
 217  220  #ifdef  __cplusplus
 218  221  }
 219  222  #endif
 220  223  
 221  224  #endif  /* _SYS_KLWP_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX