Print this page
re #13613 rb4516 Tunables needs volatile keyword


   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */



  26 
  27 /*
  28  * Copyright (c) 2015, Joyent, Inc. All rights reserved.
  29  */
  30 
  31 #ifndef _SYS_TIMER_H
  32 #define _SYS_TIMER_H
  33 
  34 #include <sys/types.h>
  35 #include <sys/proc.h>
  36 #include <sys/thread.h>
  37 
  38 #ifdef  __cplusplus
  39 extern "C" {
  40 #endif
  41 
  42 #ifdef  _KERNEL
  43 
  44 #define _TIMER_MAX      32
  45 extern  int     timer_max;              /* patchable via /etc/system */
  46 
  47 /*
  48  * Bit values for the it_lock field.
  49  */
  50 #define ITLK_LOCKED             0x01
  51 #define ITLK_WANTED             0x02
  52 #define ITLK_REMOVE             0x04
  53 
  54 /*
  55  * Bit values for the it_flags field.
  56  */
  57 #define IT_SIGNAL               0x01
  58 #define IT_PORT                 0x02    /* use event port notification */
  59 
  60 struct clock_backend;
  61 
  62 struct itimer;
  63 typedef struct itimer itimer_t;
  64 
  65 struct itimer {




   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 /*
  27  * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  28  */
  29 
  30 /*
  31  * Copyright (c) 2015, Joyent, Inc. All rights reserved.
  32  */
  33 
  34 #ifndef _SYS_TIMER_H
  35 #define _SYS_TIMER_H
  36 
  37 #include <sys/types.h>
  38 #include <sys/proc.h>
  39 #include <sys/thread.h>
  40 
  41 #ifdef  __cplusplus
  42 extern "C" {
  43 #endif
  44 
  45 #ifdef  _KERNEL
  46 
  47 #define _TIMER_MAX      32
  48 extern  volatile int    timer_max;      /* patchable via /etc/system */
  49 
  50 /*
  51  * Bit values for the it_lock field.
  52  */
  53 #define ITLK_LOCKED             0x01
  54 #define ITLK_WANTED             0x02
  55 #define ITLK_REMOVE             0x04
  56 
  57 /*
  58  * Bit values for the it_flags field.
  59  */
  60 #define IT_SIGNAL               0x01
  61 #define IT_PORT                 0x02    /* use event port notification */
  62 
  63 struct clock_backend;
  64 
  65 struct itimer;
  66 typedef struct itimer itimer_t;
  67 
  68 struct itimer {