ioctl related file clean up and fix of init code.