add ioctl code