home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / rt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.6 KB  |  56 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_RT_H
  11. #define _SYS_RT_H
  12.  
  13. #ident    "@(#)/usr/include/sys/rt.h.sl 1.1 4.0 12/08/90 41653 AT&T-USL"
  14. /*
  15.  * Real-time dispatcher parameter table entry
  16.  */
  17. typedef struct    rtdpent {
  18.     int    rt_globpri;    /* global (class independent) priority */
  19.     long    rt_quantum;    /* default quantum associated with this level */
  20. } rtdpent_t;
  21.  
  22.  
  23. /*
  24.  * Real-time class specific proc structure
  25.  */
  26. typedef struct rtproc {
  27.     long        rt_pquantum;    /* time quantum given to this proc */
  28.     long        rt_timeleft;    /* time remaining in procs quantum */
  29.     short        rt_pri;        /* priority within rt class */
  30.     ushort        rt_flags;    /* flags defined below */
  31.     struct proc    *rt_procp;    /* pointer to proc table entry */
  32.     char        *rt_pstatp;    /* pointer to p_stat */
  33.     int        *rt_pprip;    /* pointer to p_pri */
  34.     uint        *rt_pflagp;    /* pointer to p_flag */
  35.     struct rtproc    *rt_next;    /* link to next rtproc on list */
  36.     struct rtproc    *rt_prev;    /* link to previous rtproc on list */
  37. } rtproc_t;
  38.  
  39.  
  40. /* Flags */
  41. #define RTRAN    0x0001        /* process has run since last swap out */
  42. #define RTBACKQ    0x0002        /* proc goes to back of disp q when preempted */
  43.  
  44.  
  45. #ifdef _KERNEL
  46. /*
  47.  * Kernel version of real-time class specific parameter structure
  48.  */
  49. typedef struct    rtkparms {
  50.     short    rt_pri;
  51.     long    rt_tqntm;
  52. } rtkparms_t;
  53. #endif    /* _KERNEL */
  54.  
  55. #endif    /* _SYS_RT_H */
  56.