diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-01-28 13:26:15 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-02-01 16:30:38 -0500 |
commit | a3db326495d4051bddc657d3b226ad4daa7997c4 (patch) | |
tree | c45f6ba9e7229b4318b2cb1b1de886718067eea8 /litmus/fdso.c | |
parent | 2dea9d5e7727b8474981557cbf925687b8f33865 (diff) |
Litmus core: add generic locking API
Provide a unified userspace interface for plugin-specific locking
protocols.
Diffstat (limited to 'litmus/fdso.c')
-rw-r--r-- | litmus/fdso.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/litmus/fdso.c b/litmus/fdso.c index 3bb331e471df..faede9bcbbbf 100644 --- a/litmus/fdso.c +++ b/litmus/fdso.c | |||
@@ -190,7 +190,7 @@ static int do_sys_od_open(struct file* file, obj_type_t type, int id, | |||
190 | entry->used = 0; | 190 | entry->used = 0; |
191 | } else { | 191 | } else { |
192 | entry->obj = obj; | 192 | entry->obj = obj; |
193 | entry->extra = NULL; | 193 | entry->class = fdso_ops[type]; |
194 | idx = entry - current->od_table; | 194 | idx = entry - current->od_table; |
195 | } | 195 | } |
196 | 196 | ||
@@ -209,7 +209,7 @@ static int do_sys_od_open(struct file* file, obj_type_t type, int id, | |||
209 | } | 209 | } |
210 | 210 | ||
211 | 211 | ||
212 | struct od_table_entry* __od_lookup(int od) | 212 | struct od_table_entry* get_entry_for_od(int od) |
213 | { | 213 | { |
214 | struct task_struct *t = current; | 214 | struct task_struct *t = current; |
215 | 215 | ||