Create a system call to support multiple modes using void*