Return ioctl result to application