aboutsummaryrefslogtreecommitdiffstats
path: root/litmus.h
diff options
context:
space:
mode:
authorJohn M. Calandrino <jmc@jupiter-cs.cs.unc.edu>2007-04-23 17:29:20 -0400
committerJohn M. Calandrino <jmc@jupiter-cs.cs.unc.edu>2007-04-23 17:29:20 -0400
commit4786daec76a7f89b76adf103e1b8aa77907636b7 (patch)
tree6990c8b5bcc5ce198ae79245a7bc00718882e341 /litmus.h
parentb004572dbb820158a495f5ab299e60685601fe46 (diff)
Added system calls for user-space semaphores that work with the LSO.
Diffstat (limited to 'litmus.h')
-rw-r--r--litmus.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/litmus.h b/litmus.h
index 8b0b88d..f46e705 100644
--- a/litmus.h
+++ b/litmus.h
@@ -47,6 +47,9 @@ typedef struct rt_param {
47 task_class_t cls; 47 task_class_t cls;
48} rt_param_t; 48} rt_param_t;
49 49
50typedef int sema_id; /* ID of a semaphore in the Linux kernel */
51typedef int pi_sema_id; /* ID of a PI semaphore in the Linux kernel */
52
50#define set_param(t,p,e) do{\ 53#define set_param(t,p,e) do{\
51 (t).is_realtime=1;\ 54 (t).is_realtime=1;\
52 (t).exec_cost=(e);\ 55 (t).exec_cost=(e);\