aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/rtprio.h
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1994-09-01 05:12:53 +0000
committerDavid Greenman <dg@FreeBSD.org>1994-09-01 05:12:53 +0000
commite8fb0b2c179878d073b39abe87a578ac4c8248fe (patch)
tree9d05b088a74d8108c8f5219d91fa24183ccc01e4 /sys/sys/rtprio.h
parent431be400a733c39adf0a1751788babf7eacdee69 (diff)
downloadsrc-e8fb0b2c179878d073b39abe87a578ac4c8248fe.tar.gz
src-e8fb0b2c179878d073b39abe87a578ac4c8248fe.zip
Realtime priority scheduling support.
Submitted by: Henrik Vestergaard Draboel
Notes
Notes: svn path=/head/; revision=2441
Diffstat (limited to 'sys/sys/rtprio.h')
-rw-r--r--sys/sys/rtprio.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/sys/sys/rtprio.h b/sys/sys/rtprio.h
new file mode 100644
index 000000000000..7638f9bb4454
--- /dev/null
+++ b/sys/sys/rtprio.h
@@ -0,0 +1,52 @@
+/*
+ * Copyright (c) 1994, Henrik Vestergaard Draboel
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by (name).
+ * 4. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * $Id$
+ */
+
+#ifndef _SYS_RTPRIO_H_
+#define _SYS_RTPRIO_H_
+
+/*
+ * 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 */
+
+#ifndef KERNEL
+#include <sys/cdefs.h>
+
+__BEGIN_DECLS
+int rtprio __P((int, int));
+__END_DECLS
+#endif /* !KERNEL */
+#endif /* !_SYS_RTPRIO_H_ */