rework ioctl sharing