Print this page
OS-4915 want FX high priority zone configuration option
OS-4925 ps pri shows misleading value for zone in RT scheduling class
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/fx.h
          +++ new/usr/src/uts/common/sys/fx.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  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 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + * Copyright 2015 Joyent, Inc.
  24   25   */
  25   26  
  26   27  #ifndef _SYS_FX_H
  27   28  #define _SYS_FX_H
  28   29  
  29      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  30      -
  31   30  #include <sys/types.h>
  32   31  #include <sys/thread.h>
  33   32  #include <sys/ddi.h>
  34   33  #include <sys/sunddi.h>
  35   34  #include <sys/cpucaps.h>
  36   35  
  37   36  #ifdef  __cplusplus
  38   37  extern "C" {
  39   38  #endif
  40   39  
↓ open down ↓ 97 lines elided ↑ open up ↑
 138  137  /*
 139  138   * Kernel version of fixed-priority class specific parameter structure
 140  139   */
 141  140  typedef struct  fxkparms {
 142  141          pri_t   fx_upri;
 143  142          pri_t   fx_uprilim;
 144  143          int     fx_tqntm;
 145  144          uint_t  fx_cflags;
 146  145  } fxkparms_t;
 147  146  
      147 +/*
      148 + * control flags (kparms->fx_cflags).
      149 + */
      150 +#define FX_DOUPRILIM    0x01    /* change user priority limit */
      151 +#define FX_DOUPRI       0x02    /* change user priority */
      152 +#define FX_DOTQ         0x04    /* change FX time quantum */
 148  153  
      154 +#define FXMAXUPRI       60      /* maximum user priority setting */
 149  155  
 150  156  /*
 151  157   * Interface for partner private code. This is not a public interface.
 152  158   */
 153  159  extern int fx_register_callbacks(fx_callbacks_t *, fx_cookie_t, pri_t, clock_t);
 154  160  extern int fx_unregister_callbacks();
 155  161  extern int fx_modify_priority(kt_did_t, clock_t, pri_t);
 156  162  extern void *fx_get_mutex_cookie();
 157  163  extern pri_t fx_get_maxpri();
 158  164  
 159  165  #endif  /* _KERNEL */
 160  166  
 161  167  #ifdef  __cplusplus
 162  168  }
 163  169  #endif
 164  170  
 165  171  #endif  /* _SYS_FX_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX