return the result to userspace from syscall