ioctl magic