ioctl working