ioctl prototype to more standard form, just need to be careful casting