Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/modctl.h
          +++ new/usr/src/uts/common/sys/modctl.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  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   * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  23   24   */
  24   25  
  25   26  #ifndef _SYS_MODCTL_H
  26   27  #define _SYS_MODCTL_H
  27   28  
  28   29  /*
  29   30   * loadable module support.
  30   31   */
  31   32  
  32   33  #include <sys/types.h>
↓ open down ↓ 507 lines elided ↑ open up ↑
 540  541  
 541  542  typedef int modid_t;
 542  543  
 543  544  /*
 544  545   * global function and data declarations
 545  546   */
 546  547  extern kmutex_t mod_lock;
 547  548  
 548  549  extern char *systemfile;
 549  550  extern char **syscallnames;
 550      -extern int moddebug;
      551 +extern volatile int moddebug;
 551  552  
 552  553  /*
 553  554   * this is the head of a doubly linked list.  Only the next and prev
 554  555   * pointers are used
 555  556   */
 556  557  extern modctl_t modules;
 557  558  
 558  559  extern int modload_qualified(const char *,
 559  560      const char *, const char *, const char *, uint_t[], int, int *);
 560  561  
↓ open down ↓ 140 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX