home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 9.ddi / usr / include / sys / tsproc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.5 KB  |  41 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ifndef _SYS_TSPROC_H
  11. #define _SYS_TSPROC_H
  12.  
  13. #ident    "@(#)/usr/include/sys/tsproc.h.sl 1.1 4.0 12/08/90 58479 AT&T-USL"
  14. /* time-sharing class specific proc structure */
  15.  
  16. typedef struct tsproc {
  17.     long    ts_timeleft;    /* time remaining in procs quantum */
  18.     short    ts_umdpri;    /* user mode priority within ts class */
  19.     short    ts_upri;    /* user priority */
  20.     short    ts_upovrflw;    /* user requested priority which was out */
  21.                 /*  of defined range by this amount */
  22.     char    ts_nice;    /* nice value for compatibility */
  23.     short    ts_dispwait;    /* number of wall clock seconds since start */
  24.                 /*   of quantum (not reset upon preemption */
  25.     ushort    ts_flags;    /* flags defined below */
  26.     struct proc *ts_procp;    /* pointer to proc table entry */
  27.     char    *ts_pstatp;    /* pointer to p_stat */
  28.     int    *ts_pprip;    /* pointer to p_pri */
  29.     uint    *ts_pflagp;    /* pointer to p_flag */
  30.     char    *ts_ptimep;    /* pointer to p_time */
  31.     struct cred **ts_pcredpp;    /* pointer to p_cred */
  32. } tsproc_t;
  33.  
  34. extern tsproc_t    ts_proc[];
  35.  
  36. /* flags */
  37. #define    TSINUSE    0x0001        /* ts_proc entry in use */
  38. #define    TSKPRI    0x0002        /* proc at kernel mode priority */
  39.  
  40. #endif    /* _SYS_TSPROC_H */
  41.