aboutsummaryrefslogtreecommitdiffstats
path: root/src/syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/syscalls.c')
-rw-r--r--src/syscalls.c10
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
100int register_nv_device(int nv_device_id)
101{
102 return syscall(__NR_register_nv_device, nv_device_id, 1);
103}
104
105int unregister_nv_device(int nv_device_id)
106{
107 return syscall(__NR_register_nv_device, nv_device_id, 0);
108}