finished part 1 of osprd_ioctl