Working ioctl and communication