aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/rtprio.h
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1994-10-02 04:48:21 +0000
committerDavid Greenman <dg@FreeBSD.org>1994-10-02 04:48:21 +0000
commit7216391e4989b73d7794fefd88de3d13f3c9f075 (patch)
tree785ddd71e44efc1a10d0f791acee35f5daa8dbe5 /sys/sys/rtprio.h
parent723ff3e087a31bac37386d56a5875cb53106c35a (diff)
downloadsrc-7216391e4989b73d7794fefd88de3d13f3c9f075.tar.gz
src-7216391e4989b73d7794fefd88de3d13f3c9f075.zip
"idle priority" support. Based on code from Henrik Vestergaard Draboel,
but substantially rewritten by me.
Notes
Notes: svn path=/head/; revision=3291
Diffstat (limited to 'sys/sys/rtprio.h')
-rw-r--r--sys/sys/rtprio.h30
1 files changed, 24 insertions, 6 deletions
diff --git a/sys/sys/rtprio.h b/sys/sys/rtprio.h
index 7638f9bb4454..9a22a34806b7 100644
--- a/sys/sys/rtprio.h
+++ b/sys/sys/rtprio.h
@@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: rtprio.h,v 1.1 1994/09/01 05:12:53 davidg Exp $
*/
#ifndef _SYS_RTPRIO_H_
@@ -37,16 +37,34 @@
/*
* Process realtime-priority specifications to rtprio.
*/
-#define RTPRIO_MIN 0 /* relativ-FASTEST */
-#define RTPRIO_MAX 31 /* relativ-SLOWEST */
-#define RTPRIO_NOCHG 100 /* look only */
-#define RTPRIO_RTOFF 101 /* NON-realtime */
+
+/* priority types */
+#define RTP_PRIO_REALTIME 0
+#define RTP_PRIO_NORMAL 1
+#define RTP_PRIO_IDLE 2
+
+/* priority range */
+#define RTP_PRIO_MIN 0 /* Highest priority */
+#define RTP_PRIO_MAX 31 /* Lowest priority */
+
+/*
+ * rtprio() syscall functions
+ */
+#define RTP_LOOKUP 0
+#define RTP_SET 1
+
+#ifndef LOCORE
+struct rtprio {
+ u_short type;
+ u_short prio;
+};
+#endif
#ifndef KERNEL
#include <sys/cdefs.h>
__BEGIN_DECLS
-int rtprio __P((int, int));
+int rtprio __P((int, pid_t, struct rtprio *));
__END_DECLS
#endif /* !KERNEL */
#endif /* !_SYS_RTPRIO_H_ */