Print this page
OS-7753 THREAD_KPRI_RELEASE does nothing of the sort
Reviewed by: Bryan Cantrill <bryan@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>


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

  25  */
  26 
  27 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  28 /*        All Rights Reserved   */
  29 
  30 
  31 #ifndef _SYS_IA_H
  32 #define _SYS_IA_H
  33 
  34 #include <sys/types.h>
  35 #include <sys/thread.h>
  36 
  37 #ifdef  __cplusplus
  38 extern "C" {
  39 #endif
  40 
  41 #define dcmn_err        if (ia_debug) cmn_err
  42 #define IA_OFF_QUANTUM  1
  43 #define IA_OFF_PRIORITY 20
  44 #define iaumdpri        (iapp->ia_umdpri)


  68         long    ia_timeleft;    /* time remaining in procs quantum */
  69         pri_t   ia_cpupri;      /* system controlled component of ia_umdpri */
  70         pri_t   ia_uprilim;     /* user priority limit */
  71         pri_t   ia_upri;        /* user priority */
  72         pri_t   ia_umdpri;      /* user mode priority within ia class */
  73         char    ia_nice;        /* nice value for compatibility */
  74         unsigned char ia_flags; /* flags defined below */
  75         short   ia_dispwait;    /* number of wall clock seconds since start */
  76                                 /*   of quantum (not reset upon preemption */
  77         kthread_t *ia_tp;       /* pointer to thread */
  78         int     *ia_pstatp;     /* pointer to p_stat */
  79         pri_t   *ia_pprip;      /* pointer to t_pri */
  80         uint_t  *ia_pflagp;     /* pointer to p_flag */
  81         struct iaproc *ia_next; /* link to next iaproc on list */
  82         struct iaproc *ia_prev; /* link to previous iaproc on list */
  83         int     ia_mode;        /* interactive on/off */
  84 } iaproc_t;
  85 
  86 
  87 /* flags */
  88 #define IAKPRI  0x01    /* thread at kernel mode priority */
  89 #define IABACKQ 0x02    /* thread goes to back of disp q when preempted */
  90 #define IASLEPT 0x04    /* thread had long-term suspend - give new slice */
  91 
  92 
  93 #ifdef  __cplusplus
  94 }
  95 #endif
  96 
  97 #endif  /* _SYS_IA_H */


   5  * Common Development and Distribution License, Version 1.0 only
   6  * (the "License").  You may not use this file except in compliance
   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  * Copyright (c) 1997-1998 by Sun Microsystems, Inc.
  24  * All rights reserved.
  25  * Copyright 2019 Joyent, Inc.
  26  */
  27 
  28 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  29 /*        All Rights Reserved   */
  30 
  31 
  32 #ifndef _SYS_IA_H
  33 #define _SYS_IA_H
  34 
  35 #include <sys/types.h>
  36 #include <sys/thread.h>
  37 
  38 #ifdef  __cplusplus
  39 extern "C" {
  40 #endif
  41 
  42 #define dcmn_err        if (ia_debug) cmn_err
  43 #define IA_OFF_QUANTUM  1
  44 #define IA_OFF_PRIORITY 20
  45 #define iaumdpri        (iapp->ia_umdpri)


  69         long    ia_timeleft;    /* time remaining in procs quantum */
  70         pri_t   ia_cpupri;      /* system controlled component of ia_umdpri */
  71         pri_t   ia_uprilim;     /* user priority limit */
  72         pri_t   ia_upri;        /* user priority */
  73         pri_t   ia_umdpri;      /* user mode priority within ia class */
  74         char    ia_nice;        /* nice value for compatibility */
  75         unsigned char ia_flags; /* flags defined below */
  76         short   ia_dispwait;    /* number of wall clock seconds since start */
  77                                 /*   of quantum (not reset upon preemption */
  78         kthread_t *ia_tp;       /* pointer to thread */
  79         int     *ia_pstatp;     /* pointer to p_stat */
  80         pri_t   *ia_pprip;      /* pointer to t_pri */
  81         uint_t  *ia_pflagp;     /* pointer to p_flag */
  82         struct iaproc *ia_next; /* link to next iaproc on list */
  83         struct iaproc *ia_prev; /* link to previous iaproc on list */
  84         int     ia_mode;        /* interactive on/off */
  85 } iaproc_t;
  86 
  87 
  88 /* flags */
  89 /* Formerly: IAKPRI 0x01 - thread at kernel model priority */
  90 #define IABACKQ 0x02    /* thread goes to back of disp q when preempted */
  91 #define IASLEPT 0x04    /* thread had long-term suspend - give new slice */
  92 
  93 
  94 #ifdef  __cplusplus
  95 }
  96 #endif
  97 
  98 #endif  /* _SYS_IA_H */