ioctl implemented