Add ioctl.  Just compile, not tested yet.