Add unlocked_ioctl function