diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-05-26 17:19:39 -0400 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-05-26 17:19:39 -0400 |
commit | a298df4f5c08023b8447e53aba14e062e551e10c (patch) | |
tree | 66f2a8a2f2c2e3f8949de9d26b44ca6592797201 /src/syscalls.c | |
parent | ab4d9b18499d87cc63d2dd06999b364e5c809eb9 (diff) |
GPUSync RTSS12 liblitmuswip-gpu-rtss12
Diffstat (limited to 'src/syscalls.c')
-rw-r--r-- | src/syscalls.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/syscalls.c b/src/syscalls.c index e0ce941..97d1ebd 100644 --- a/src/syscalls.c +++ b/src/syscalls.c | |||
@@ -96,3 +96,13 @@ int null_call(cycles_t *timestamp) | |||
96 | { | 96 | { |
97 | return syscall(__NR_null_call, timestamp); | 97 | return syscall(__NR_null_call, timestamp); |
98 | } | 98 | } |
99 | |||
100 | int register_nv_device(int nv_device_id) | ||
101 | { | ||
102 | return syscall(__NR_register_nv_device, nv_device_id, 1); | ||
103 | } | ||
104 | |||
105 | int unregister_nv_device(int nv_device_id) | ||
106 | { | ||
107 | return syscall(__NR_register_nv_device, nv_device_id, 0); | ||
108 | } | ||