added ioctl func
added ioctl func