ioctl code to initialize device