pass types table to ioctl not just s