home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / rtpriocntl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.2 KB  |  52 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_RTPRIOCNTL_H
  11. #define _SYS_RTPRIOCNTL_H
  12.  
  13. #ident    "@(#)/usr/include/sys/rtpriocntl..sl 1.1 4.0 12/08/90 17098 AT&T-USL"
  14. /*
  15.  * Real-time class specific structures for the priocntl system call.
  16.  */
  17.  
  18. typedef struct rtparms {
  19.     short    rt_pri;        /* real-time priority */
  20.     ulong    rt_tqsecs;    /* seconds in time quantum */
  21.     long    rt_tqnsecs;    /* additional nanosecs in time quantum */
  22. } rtparms_t;
  23.  
  24.  
  25. typedef struct rtinfo {
  26.     short    rt_maxpri;    /* maximum configured real-time priority */
  27. } rtinfo_t;
  28.  
  29.  
  30. #define    RT_NOCHANGE    -1
  31. #define RT_TQINF    -2
  32. #define RT_TQDEF    -3
  33.  
  34.  
  35. /*
  36.  * The following is used by the dispadmin(1M) command for
  37.  * scheduler administration and is not for general use.
  38.  */
  39.  
  40. typedef struct rtadmin {
  41.     struct rtdpent    *rt_dpents;
  42.     short        rt_ndpents;
  43.     short        rt_cmd;
  44. } rtadmin_t;
  45.  
  46. #define    RT_GETDPSIZE    1
  47. #define    RT_GETDPTBL    2
  48. #define    RT_SETDPTBL    3
  49.  
  50.  
  51. #endif    /* _SYS_RTPRIOCNTL_H */
  52.