Extract ioctl from wrapper