diff options
author | Sun <chsun@bonham.cs.unc.edu> | 2011-03-03 15:41:16 -0500 |
---|---|---|
committer | Sun <chsun@bonham.cs.unc.edu> | 2011-03-03 15:41:16 -0500 |
commit | 80051e84d7e1cb4251709c2261e15711b8a8f47e (patch) | |
tree | 85e8502c0b30d2b010b29367959a442bc144dc49 | |
parent | ed2742a29674222173147b73f223bc7be01e1eaf (diff) |
Have SYS_CALL register_nv_device for tasks to register its current occupy nv device.
-rw-r--r-- | src/syscalls.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/syscalls.c b/src/syscalls.c index d800141..9d2f2ee 100644 --- a/src/syscalls.c +++ b/src/syscalls.c | |||
@@ -88,3 +88,8 @@ int null_call(cycles_t *timestamp) | |||
88 | { | 88 | { |
89 | return syscall(__NR_null_call, timestamp); | 89 | return syscall(__NR_null_call, timestamp); |
90 | } | 90 | } |
91 | |||
92 | int register_nv_device(pid_t pid, int nv_device_id) | ||
93 | { | ||
94 | return syscall(__NR_set_register_nv_device, pid_t pid, int nv_device_id); | ||
95 | } | ||