change ioctl to unlocked_ioctl