Space Micro interview question

How to write IOCTL method, prototype it.