update ioctl impl