Add: Finished translating c-code. Errors persists, need to
implement working IOCTL to fix this.