beginning of ioctl
beginning of ioctl