FIX: Small fixes of xxx_ioctl() functionality