move more ioctl to codecbase