use the right ioctl